36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
# 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
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Archive Release
|
|
uses: thedoctor0/zip-release@b57d897cb5d60cb78b51a507f63fa184cfe35554 # v0.7.6
|
|
with:
|
|
filename: 'pairdrop-cli.zip'
|
|
directory: 'pairdrop-cli'
|
|
exclusions: '*.git* /*node_modules/* .editorconfig'
|
|
- name: Upload Release
|
|
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 # v1.13.0
|
|
with:
|
|
artifacts: "pairdrop-cli/pairdrop-cli.zip"
|
|
token: ${{ secrets.GITHUB_TOKEN }} |