Skip to content

Commit

Permalink
build.yml action updates to not use deprecated actions and have safer…
Browse files Browse the repository at this point in the history
… conditions for running steps
  • Loading branch information
1eyewonder committed Dec 29, 2024
1 parent 2e6b9b8 commit 285cfad
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build master
name: Build main

on:
push:
Expand Down Expand Up @@ -40,18 +40,21 @@ jobs:

# Upload the static files
- name: Upload documentation
uses: actions/upload-pages-artifact@v2
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-pages-artifact@v3
with:
path: ./output

# GitHub Actions recommends deploying in a separate job.
build-docs:
upload-docs:
runs-on: ubuntu-latest
needs: build
# ensures that the job only runs when the workflow is triggered by a push event to the main branch
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4

analyze:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 285cfad

Please sign in to comment.