Skip to content

Commit

Permalink
copy pages directory for action workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
hall committed Mar 30, 2023
1 parent 0767168 commit 279eb72
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
name: main
permissions:
contents: write
pages: write
id-token: write
on:
push:
branches:
Expand All @@ -12,6 +8,10 @@ on:
jobs:
main:
runs-on: ubuntu-latest
permissions:
contents: write # to create a release
pages: write
id-token: write
steps:
- name: checkout repo
uses: actions/checkout@v3
Expand All @@ -23,7 +23,10 @@ jobs:
run: nix flake check

- name: build package
run: nix build
run: |
nix build
# https://github.com/actions/deploy-pages/issues/58
cp -rL --no-preserve=mode,ownership ./result www
- name: get latest tag
id: latest
Expand All @@ -46,7 +49,7 @@ jobs:
if: steps.release.outcome == 'success'
uses: actions/upload-pages-artifact@v1
with:
path: ./result
path: ./www

- name: deploy
if: steps.release.outcome == 'success'
Expand Down

0 comments on commit 279eb72

Please sign in to comment.