Skip to content

Commit

Permalink
update ci workflow to automatically create release packages with desc…
Browse files Browse the repository at this point in the history
…ription
  • Loading branch information
simbo committed Dec 5, 2023
1 parent c5c2f8d commit ba99f63
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions .github/workflows/ci.yml
Expand Up @@ -29,18 +29,36 @@ jobs:
- name: 📦 Install
run: npm ci

- name: 🕵️ Lint
run: npm run lint

- name: 🧑‍🏫 Check Format
run: npm run format

- name: 🕵️ Lint
run: npm run lint

- name: 👷‍♂️ Build
run: yarn run build
run: npm run build

- name: 🚚 Deploy
- name: 📦 Create Release Package
if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') }}
uses: JamesIves/github-pages-deploy-action@v4
id: package
run: zip -r dist.zip dist

- name: 📋 Collect Changes
if: ${{ steps.package.outcome == 'success' }}
id: changes
uses: simbo/changes-between-tags-action@v1

- name: 🎁 Create GitHub Release
if: ${{ steps.package.outcome == 'success' }}
uses: ncipollo/release-action@v1
with:
folder: dist
commit-message: Release ${{ github.ref_name }} from main @ ${{ github.sha }}
name: Release ${{ steps.changes.outputs.tag }}
body: ${{ steps.changes.outputs.changes }}
artifacts: dist.zip

# - name: 🚚 Deploy to GitHub Pages
# if: ${{ steps.package.outcome == 'success' }}
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# folder: dist
# commit-message: Release ${{ github.ref_name }} from main @ ${{ github.sha }}

0 comments on commit ba99f63

Please sign in to comment.