-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.31 KB
/
releaseWorkflow.yml
File metadata and controls
38 lines (36 loc) · 1.31 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
29
30
31
32
33
34
35
36
37
38
name: Create new Stable Release
on:
push:
tags:
- "v*.*"
jobs:
Create-new-Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: get version
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} # pls dont ask me why it has to work like this.
- name: move scripts and README
run: |
TAG=${{ steps.vars.outputs.tag }}
mkdir filefighter-$TAG
mv lib filefighter-$TAG/lib
mv ffighter filefighter-$TAG/ffighter
mv Install.sh filefighter-$TAG/Install.sh
cp README.md filefighter-$TAG/README.md
mv config.cfg filefighter-$TAG/config.cfg
- name: move docker-compose
run: |
TAG=${{ steps.vars.outputs.tag }}
mkdir filefighter-$TAG-docker-compose
mv docker-compose.yml filefighter-$TAG-docker-compose/docker-compose.yml
cp README.md filefighter-$TAG-docker-compose/README.md
- name: Create new release and tag.
uses: meeDamian/github-release@2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.vars.outputs.tag }}
gzip: folders
allow_override: true
files: "filefighter-${{ steps.vars.outputs.tag }} filefighter-${{ steps.vars.outputs.tag }}-docker-compose"