-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 913 Bytes
/
pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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