-
-
Notifications
You must be signed in to change notification settings - Fork 19
36 lines (30 loc) · 1.09 KB
/
release.yml
File metadata and controls
36 lines (30 loc) · 1.09 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
name: Public Release CI
on:
push:
tags: ["v*"]
workflow_dispatch:
jobs:
release-public:
name: Public Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set variables
id: vars
run: echo ::set-output name=version::${GITHUB_REF#refs/tags/v}
- name: Archive Source code
run: zip -r BryanBot-v${{ steps.vars.outputs.version }}.zip * -x Dockerfile docker-compose.yml
- name: Generate Checksums
run: |
md5sum BryanBot-v${{ steps.vars.outputs.version }}.zip pterodactyl-egg.json > md5-checksums.txt
sha256sum BryanBot-v${{ steps.vars.outputs.version }}.zip pterodactyl-egg.json > sha256-checksums.txt
sha512sum BryanBot-v${{ steps.vars.outputs.version }}.zip pterodactyl-egg.json > sha512-checksums.txt
- uses: "softprops/action-gh-release@v2"
with:
name: "BryanBot v${{ steps.vars.outputs.version }}"
prerelease: false
draft: true
files: |
BryanBot-*.zip
pterodactyl-egg.json
*-checksums.txt