Skip to content

Commit

Permalink
ci(build): fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
42willow committed Jan 23, 2025
1 parent df9ae9c commit 3b1eb86
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,24 @@ on:
paths: ["wallpapers/**"]
workflow_dispatch:

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
github_access_token: ${{ github.token }}

- run: nix build .#macchiato
- run: mkdir -p dist
- run: cp -rL --no-preserve=ownership result/share/wallpapers/* dist/
- run: sudo chmod -R 666 dist/
- run: nix build .#full
- run: |
mkdir -p dist
cp -rL --no-preserve=ownership result/share/wallpapers/* dist/
for dir in dist/*; do
zip -r "${dir%/}.zip" "$dir"
done
Expand Down
2 changes: 1 addition & 1 deletion result

0 comments on commit 3b1eb86

Please sign in to comment.