Skip to content

Commit

Permalink
ci: Catch up to the latest GitHub Actions steps versions (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmorley authored Feb 19, 2024
1 parent 9e73dd0 commit cbf3bad
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.ACCESS_TOKEN }}
submodules: recursive
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
steps:

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.ACCESS_TOKEN }}
submodules: recursive
Expand All @@ -77,28 +77,25 @@ jobs:
done
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3

deploy:
needs: documentation
if: ${{ github.ref == 'refs/heads/main' }}

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
pages: write
id-token: write

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this action
uses: actions/deploy-pages@v4

update-homebrew:
needs: build
Expand All @@ -108,7 +105,7 @@ jobs:
steps:

- name: Update Homebrew formula
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets._GITHUB_ACCESS_TOKEN }}
repository: inseven/homebrew-incontext
Expand Down

0 comments on commit cbf3bad

Please sign in to comment.