forked from xresloader/upload-to-github-release-test
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (23 loc) · 722 Bytes
/
main.yml
File metadata and controls
25 lines (23 loc) · 722 Bytes
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
name: main
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: "find env"
run: |
set | grep GITHUB_ | grep -v GITHUB_TOKEN
zip -r pkg.zip *.md
echo "$(openssl rand -hex 6)" > "random-name-$(openssl rand -hex 6).txt"
echo "$(openssl rand -hex 6)" > "random-name-$(openssl rand -hex 6).txt"
- uses: xresloader/upload-to-github-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "*.md;*.zip;random-name-*.txt"
delete_file: "random-name-*.txt"
tags: false
draft: true
branches: "main;dev"
verbose: true