changelog #504
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: Create Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js 20.19.0 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.19.0 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build release assets | |
| run: bash ./scripts/build-release.sh | |
| - name: Get Changelog | |
| id: changelog | |
| uses: statamic/changelog-action@v1 | |
| with: | |
| version: ${{ github.ref }} | |
| - name: Create release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ steps.changelog.outputs.version }} | |
| release_name: ${{ steps.changelog.outputs.version }} | |
| body: ${{ steps.changelog.outputs.text }} | |
| prerelease: true | |
| - name: Upload dist zip to release | |
| uses: actions/[email protected] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./resources/dist.tar.gz | |
| asset_name: dist.tar.gz | |
| asset_content_type: application/tar+gz | |
| - name: Upload dist-dev zip to release | |
| uses: actions/[email protected] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./resources/dist-dev.tar.gz | |
| asset_name: dist-dev.tar.gz | |
| asset_content_type: application/tar+gz | |
| - name: Upload dist-frontend zip to release | |
| uses: actions/[email protected] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./resources/dist-frontend.tar.gz | |
| asset_name: dist-frontend.tar.gz | |
| asset_content_type: application/tar+gz | |
| - name: Upload dist-package zip to release | |
| uses: actions/[email protected] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./resources/dist-package.tar.gz | |
| asset_name: dist-package.tar.gz | |
| asset_content_type: application/tar+gz | |
| - name: Deploy Storybook to Forge | |
| continue-on-error: true | |
| run: | | |
| curl -X POST "${{ secrets.FORGE_STORYBOOK_WEBHOOK }}" |