Skip to content

Commit

Permalink
ci: implement release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
vabe committed Apr 6, 2024
1 parent eb8f6c5 commit 51c2e1b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and Release

on:
push:
branches:
- main

permissions:
id-token: write
contents: write
pull-requests: write

jobs:
build:
name: Build and Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci

- name: Build
run: npm run build

- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: node

- name: Upload Release Artifact
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
zip -r chimie-${{ steps.release.outputs.tag_name }}.zip ./build/*
gh release upload ${{ steps.release.outputs.tag_name }} chimie-${{ steps.release.outputs.tag_name }}.zip

0 comments on commit 51c2e1b

Please sign in to comment.