-
-
Notifications
You must be signed in to change notification settings - Fork 14
42 lines (35 loc) · 1.42 KB
/
release.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
40
41
42
name: Build & release
on:
push:
tags:
- "v*"
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "14"
cache: "yarn"
- name: Install yarn and dependecies
run: yarn install --network-timeout 1000000
- name: Build JS & CSS
run: yarn run build
# zip -r weewx-wdc-1.zip . -x *.git* /*node_modules/* /*.vscode/* /*.parcel-cache/* /*.yarn/* .eslintrc.json .prettierignore .prettierrc.json package.json tsconfig.json yarn.lock playwright.config.ts .yarnrc .yarnrc.yml webpack.config.js /*test/* /*skins/weewx-wdc/src/*
- name: Archive Release (zip)
uses: thedoctor0/zip-release@master
with:
type: "zip"
filename: "weewx-wdc-${{github.ref_name}}.zip"
exclusions: "*.git* /*node_modules/* /*.vscode/* /*.parcel-cache/* /*.yarn/* .eslintrc.json .prettierignore .prettierrc.json package.json tsconfig.json yarn.lock playwright.config.ts .yarnrc .yarnrc.yml webpack.config.js /*test/* /*skins/weewx-wdc/src/*"
- uses: ncipollo/release-action@v1
with:
artifacts: "weewx-wdc-${{github.ref_name}}.zip"
draft: true
prerelease: false
generateReleaseNotes: true
bodyFile: changelog.md
token: ${{ secrets.GITHUB_TOKEN }}