mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 22:45:42 -06:00
235767e212
- When new release is made, config-zip bundle is made and attached to release. It will also be made available under static url https://github.com/nunocoracao/blowfish/releases/download/latest/config-default.zip
25 lines
No EOL
807 B
YAML
25 lines
No EOL
807 B
YAML
name: Create Config ZIP
|
|
on:
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
zip:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- run: zip -r config-default.zip config/_default
|
|
- name: Create/Update latest release # adds file static url
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: config-default.zip
|
|
tag_name: latest
|
|
name: Latest Config Files
|
|
body: Automated config files bundle
|
|
- name: Add to version release # adds file to the release assets
|
|
if: github.event_name == 'release' # run on actual releases, not manual triggers
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: config-default.zip
|
|
tag_name: ${{ github.event.release.tag_name }} |