-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (26 loc) · 1.05 KB
/
release.yml
File metadata and controls
28 lines (26 loc) · 1.05 KB
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
name: Releases
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v2
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- run: mkdir BestDealHelper
- run: cp -v CHANGELOG.md info.txt main.js chroma.min.js BestDealHelper/
- run: touch BestDealHelper/Ver_${RELEASE_VERSION}
- run: zip -r BestDealHelper-${RELEASE_VERSION}.zip BestDealHelper
- uses: ncipollo/release-action@v1
with:
name: Release ${{ env.RELEASE_VERSION }}
bodyFile: "RELEASE.md"
artifacts: BestDealHelper-${{ env.RELEASE_VERSION }}.zip
token: ${{ secrets.GITHUB_TOKEN }}