Update version #46
Workflow file for this run
This file contains hidden or 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: Release and Dispatch | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| - '!*alpha*' | |
| - '!*beta*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| name: Package and Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 1. Checkout code | |
| - name: 1️⃣ Checkout code | |
| uses: actions/checkout@v4 | |
| # 2. Set up variables | |
| - name: 2️⃣ Set up variables | |
| id: tag | |
| run: echo "name=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT | |
| # 3. Prepare ZIP contents | |
| - name: 3️⃣ Prepare ZIP contents | |
| run: | | |
| mkdir -p common | |
| cp -r css common/ | |
| cp -r fonts common/ | |
| cp -r img common/ | |
| cp -r js common/ | |
| cp index.html common/ | |
| cp version common/ | |
| # 4. Create ZIP archive | |
| - name: 4️⃣ Create ZIP archive | |
| run: | | |
| zip -r csk-common-${{ steps.tag.outputs.name }}.zip common | |
| # 5. Create GitHub Release and Upload ZIP | |
| - name: 5️⃣ Create GitHub Release and Upload ZIP | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: ${{ steps.tag.outputs.name }} | |
| files: csk-common-${{ steps.tag.outputs.name }}.zip | |
| dispatch: | |
| name: Notify Projects | |
| runs-on: ubuntu-latest | |
| needs: release | |
| steps: | |
| - name: Notify projects of common update | |
| uses: peter-evans/repository-dispatch@v3 | |
| with: | |
| token: ${{ secrets.CSK_PAT }} | |
| repository: ianhubnet/csk-projects | |
| event-type: common-update |