Skip to content

Commit

Permalink
Update GitHub Actions dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rocka committed Jul 22, 2024
1 parent 33a0bbf commit 494d54e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 37 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@ on:
push:
branches:
- master

permissions:
contents: read
pages: write
id-token: write
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v23
- name: Checkout
uses: actions/checkout@v4

- uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- uses: cachix/cachix-action@v12
- uses: cachix/cachix-action@v15
with:
name: fcitx5-android
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
Expand All @@ -27,17 +25,27 @@ jobs:
run: nix develop --command mkdocs build --site-dir public

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: public
retention-days: 90

deploy:
if: github.ref_name == 'master'
needs: build

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
needs: build

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
26 changes: 0 additions & 26 deletions .github/workflows/pull_request.yml

This file was deleted.

0 comments on commit 494d54e

Please sign in to comment.