From 7db9e2039a8e2e959cbf1a03143a083bb26fe8d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 28 Aug 2021 12:46:49 +0200 Subject: [PATCH 1/3] ci: remove obsolete option --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e162a66..4c9b396 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,4 @@ jobs: steps: - uses: actions/checkout@v2 - uses: cachix/install-nix-action@v12 - with: - skip_adding_nixpkgs_channel: true - run: nix-build -A hydraJobs.release From 12c790e25cc900ad0c53cf8879b3f53102a2e2ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 28 Aug 2021 12:47:05 +0200 Subject: [PATCH 2/3] publish tarballs with github workflow --- .github/workflows/publish.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..75e039d --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +name: Publish +on: + push: + tags: + - '*' + +jobs: + build: + name: Publish tarballs + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - uses: cachix/install-nix-action@v13 + - name: Build tarballs + run: | + nix-build -A hydraJobs.tarball + install -D ./result/tarballs/*.tar.bz2 ./dist/patchelf-$(cat version).tar.bz + install -D ./result/tarballs/*.tar.gz ./dist/patchelf-$(cat version).tar.gz + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: dist/* + tag: ${{ github.ref }} + overwrite: true + file_glob: true From a5f569acfa430dd3cb2b9c215cec9ffc90b0f930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 28 Aug 2021 13:30:26 +0200 Subject: [PATCH 3/3] github: update install-nix-action --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c9b396..b174c91 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,5 +7,5 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: cachix/install-nix-action@v12 + - uses: cachix/install-nix-action@v13 - run: nix-build -A hydraJobs.release