-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (30 loc) · 809 Bytes
/
release.yml
File metadata and controls
33 lines (30 loc) · 809 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
26
27
28
29
30
31
32
33
name: Build and Release Polygon
permissions:
contents: write
on:
release:
types: [published]
jobs:
BuildAndRelease:
name: Build and Release
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
if: startsWith(github.ref, 'refs/tags/v')
with:
fetch-depth: 0
- name: Build Polygon
shell: pwsh
if: startsWith(github.ref, 'refs/tags/v')
run: .\polygon.ps1;
- name: Upload to GitHub release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: |
./build/polygon-x*.zip
./build/polygon-x*.msi
./build/polygon-checksum.txt
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}