Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…elector into master
  • Loading branch information
kuniteru committed Oct 30, 2020
2 parents d413c5e + 82e576f commit 1feaa70
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/zip-when-published.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Zip archive when published

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Archive package
run: |
zip -rj akis.zip src/*
echo TAG_VERSION=`echo ${{github.ref}} | sed s/^refs.tags.//` >> $GITHUB_ENV
- name: Upload zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./akis.zip
asset_name: AzureKuduInstanceSelector-${{env.TAG_VERSION}}.zip
asset_content_type: application/zip

0 comments on commit 1feaa70

Please sign in to comment.