From 926f0dbf43c401e86369502f14ade34841956ab0 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Tue, 22 Jun 2021 08:35:19 +0200 Subject: [PATCH] chore: remove GitHub pages --- ...-static-web-apps-ashy-meadow-063e9ba03.yml | 31 ------------- .github/workflows/docs.yml | 45 ++++++++----------- 2 files changed, 18 insertions(+), 58 deletions(-) delete mode 100644 .github/workflows/azure-static-web-apps-ashy-meadow-063e9ba03.yml diff --git a/.github/workflows/azure-static-web-apps-ashy-meadow-063e9ba03.yml b/.github/workflows/azure-static-web-apps-ashy-meadow-063e9ba03.yml deleted file mode 100644 index e69f40ce..00000000 --- a/.github/workflows/azure-static-web-apps-ashy-meadow-063e9ba03.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index af286b34..f18b759b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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