chore: remove GitHub pages

This commit is contained in:
Jan De Dobbeleer 2021-06-22 08:35:19 +02:00 committed by Jan De Dobbeleer
parent 7c72e76aff
commit 926f0dbf43
2 changed files with 18 additions and 58 deletions

View file

@ -1,31 +0,0 @@
name: Azure Static Web Apps CI/CD
on:
push:
branches:
- main
paths:
- 'docs/**'
- 'themes/**'
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_MEADOW_063E9BA03 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/docs" # App source code path
api_location: "api" # Api source code path - optional
output_location: "build" # Built app content directory - optional

View file

@ -1,4 +1,5 @@
name: Build and Deploy
name: Azure Static Web Apps CI/CD
on:
push:
branches:
@ -6,34 +7,24 @@ on:
paths:
- 'docs/**'
- 'themes/**'
jobs:
build-and-deploy:
build_and_deploy:
runs-on: ubuntu-latest
name: Build and Deploy
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install Go
uses: actions/setup-go@v2
submodules: true
- name: Build And Deploy 🚀
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
go-version: 1.16
- name: Build oh-my-posh 🎨
run: |
cd src
go build -o ./bin/oh-my-posh
cd ..
- name: Install and Build 🔧
run: |
export PATH="$PWD/src/bin:$PATH"
cd docs
npm install
npm run themes
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/build # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_MEADOW_063E9BA03 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/docs" # App source code path
api_location: "api" # Api source code path - optional
output_location: "build" # Built app content directory - optional