update to pkgs.nextcloud29 #137
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test build & release | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- main | |
env: | |
ARTIFACT_PREFIX: nextcloud | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v27 | |
- run: nix build --no-update-lock-file | |
- run: nix flake check --no-update-lock-file | |
- name: Prepare artifacts | |
run: | | |
cp result/${{ env.ARTIFACT_PREFIX}}_*.raw ./ | |
sh -c 'sha256sum $0 > $0.sha256' ${{ env.ARTIFACT_PREFIX }}_*.raw | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
if-no-files-found: error | |
retention-days: 5 | |
path: | | |
${{ env.ARTIFACT_PREFIX }}_*.raw | |
${{ env.ARTIFACT_PREFIX }}_*.raw.sha256 | |
name: ${{ env.ARTIFACT_PREFIX }} | |
- name: Release Info | |
run: | | |
nix build --no-update-lock-file -o release-info .#release-info | |
cat release-info | |
- name: Create a github release from tag | |
if: startsWith(github.ref, 'refs/tags/v') | |
uses: softprops/action-gh-release@v2 | |
with: | |
prerelease: true | |
files: | | |
${{ env.ARTIFACT_PREFIX }}_*.raw | |
${{ env.ARTIFACT_PREFIX }}_*.raw.sha256 | |
body_path: release-info |