-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (48 loc) · 1.99 KB
/
main.yml
File metadata and controls
50 lines (48 loc) · 1.99 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
39
40
41
42
43
44
45
46
47
48
49
50
name: main
on:
push:
branches:
- main
jobs:
linux_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Show settings and generate random files"
run: |
set | grep GITHUB_ | grep -v GITHUB_TOKEN
zip -r pkg.zip *.md
mkdir -p test/subdir
echo "$(openssl rand -hex 6)" > "test/subdir/random-name-linux-$(openssl rand -hex 6).txt"
echo "$(openssl rand -hex 6)" > "test/subdir/random-name-linux-$(openssl rand -hex 6).txt"
echo "$(openssl rand -hex 6)" > "test/subdir/absulote-path-test-linux.txt"
- uses: xresloader/upload-to-github-release@main
with:
file: "*.md;*.zip;test/subdir/random-name-linux-*.txt;${{ github.workspace }}/test/subdir/absulote-path-test-linux.txt"
delete_file: "*linux*.txt"
branches: "main;dev"
verbose: true
prerelease: true
default_release_name: "Test release name for main branch"
default_release_body: "Test release body for main branch"
windows_test:
runs-on: windows-latest
needs: [linux_test]
steps:
- uses: actions/checkout@v4
- name: "Show settings and generate random files"
shell: bash
run: |
set | grep GITHUB_ | grep -v GITHUB_TOKEN
mkdir -p test/subdir
echo "$(openssl rand -hex 6)" > "test/subdir/random-name-windows-$(openssl rand -hex 6).txt"
echo "$(openssl rand -hex 6)" > "test/subdir/random-name-windows-$(openssl rand -hex 6).txt"
echo "$(openssl rand -hex 6)" > "test/subdir/absulote-path-test-windows.txt"
- uses: xresloader/upload-to-github-release@main
with:
file: "test\\subdir\\random-name-windows-*.txt;${{ github.workspace }}\\test\\subdir\\absulote-path-test-windows.txt"
delete_file: "*windows*.txt"
branches: "main;dev"
verbose: true
prerelease: true
default_release_name: "Test release name for main branch"