From 7786499dcc5c5bea5909d542ae5a4381152ddac8 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Wed, 6 Dec 2023 09:54:54 +0100 Subject: [PATCH] Add workflow to create a new zip file from pairdrop-cli whenever a new version tag is pushed --- .github/workflows/zip-release.yml | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/zip-release.yml diff --git a/.github/workflows/zip-release.yml b/.github/workflows/zip-release.yml new file mode 100644 index 0000000..115b08c --- /dev/null +++ b/.github/workflows/zip-release.yml @@ -0,0 +1,35 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# GitHub recommends pinning actions to a commit SHA. +# To get a newer version, you will need to update the SHA. +# You can also reference a tag or branch, but the action may change without warning. + +# Create a new zip file from pairdrop-cli whenever a new version tag is pushed + +name: Zip Release + +on: + push: + tags: + - "v*.*.*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Archive Release + uses: thedoctor0/zip-release@b57d897cb5d60cb78b51a507f63fa184cfe35554 # v0.7.6 + with: + type: 'zip' + filename: 'pairdrop-cli.zip' + path: 'pairdrop-cli' + exclusions: '*.git* /*node_modules/* .editorconfig' + - name: Upload Release + uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 # v1.13.0 + with: + artifacts: "pairdrop-cli.zip" + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file