v0.1.63 Pre-release Beta #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create release zips | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Zip Folder | |
run: zip -r default-hlstatsx-files-${{github.ref_name}}.zip default | |
- name: Zip Folder2 | |
run: zip -r hlstatsx-windmill-theme-${{github.ref_name}}.zip web | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: default-hlstatsx-files-${{github.ref_name}}.zip,hlstatsx-windmill-theme-${{github.ref_name}}.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Get changed files in the .github folder | |
id: changed-files-specific | |
uses: tj-actions/changed-files@v45 | |
with: | |
files: web/** | |
env: | |
ALL_CHANGED_FILES: ${{ steps.changed-files-specific.outputs.all_changed_files }} | |
- name: Upload | |
uses: djn24/add-comment-to-release@v1 | |
with: | |
token: ${{secrets.GITHUB_TOKEN}} | |
comment: |- | |
<details> | |
<summary>Changed files since last release</summary> | |
<p> | |
${{ steps.changed-files-specific.outputs.all_changed_files }} | |
</p> | |
</details> |