Skip to content

Commit

Permalink
github-actions: update
Browse files Browse the repository at this point in the history
  • Loading branch information
newAM committed May 7, 2024
1 parent a0d292f commit f23c34a
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
bom:
name: Bill of Materials
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
Expand All @@ -21,10 +19,25 @@ jobs:
name: newam
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build .#bom -L
- name: deploy
if: ${{ github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3
# https://github.com/actions/upload-pages-artifact?tab=readme-ov-file#file-permissions
- name: fix permissions
run: |
cp -rL result public
chmod 777 -R public
- uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./result
force_orphan: true
path: ./public

deploy:
runs-on: ubuntu-latest
needs: bom
if: ${{ github.ref == 'refs/heads/main' }}
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4
id: deployment

0 comments on commit f23c34a

Please sign in to comment.