-
-
Notifications
You must be signed in to change notification settings - Fork 67
48 lines (36 loc) · 1.3 KB
/
main.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
43
44
45
46
47
48
name: Archive and Release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set file name
run: echo "FILENAME=Revi-PB-${{ github.ref_name }}.apbx" >> $GITHUB_ENV
- name: Archive content
run: |
7z a -p${{ secrets.PASSWORD }} -mhe=on "${{ env.FILENAME }}" ./src/*
- name: Hash 256
run: |
echo "HASH=$(sha256sum ${{ env.FILENAME }} | cut -d ' ' -f 1)" >> $GITHUB_ENV
# - name: DevUploads
# run: |
# url=$(bash <(curl -s https://devuploads.com/upload.sh) -f "${{ env.FILENAME }}" -k "${{ secrets.DEVUPLOADS_API_KEY }}" | grep -o 'https://devuploads.com[^"]*')
# echo "DEVUPLOADS=$url" >> $GITHUB_ENV
- name: Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.TOKEN }}
file: ${{ env.FILENAME }}
asset_name: ${{ env.FILENAME }}
tag: ${{ github.ref }}
overwrite: true
body: |
# Download Link ✨
If you would like to support Revision, kindly download the Playbook from the provided link below.
📌Link:
SHA256: `${{ env.HASH }}`