summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-08-28 12:47:05 +0200
committerJörg Thalheim <joerg@thalheim.io>2021-08-28 13:28:47 +0200
commit12c790e25cc900ad0c53cf8879b3f53102a2e2ad (patch)
tree4405bf851cd2989d93d471bc22d2c727ad7ddb92
parent7db9e2039a8e2e959cbf1a03143a083bb26fe8d3 (diff)
downloadpatchelf-12c790e25cc900ad0c53cf8879b3f53102a2e2ad.tar.gz
publish tarballs with github workflow
-rw-r--r--.github/workflows/publish.yml27
1 files changed, 27 insertions, 0 deletions
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