-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.yml
36 lines (32 loc) · 943 Bytes
/
release.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
name: Create .xdc Release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: build .xdc file
id: build
run: |
wget https://github.com/webxdc/webxdc-dev/raw/master/create-xdc.sh
chmod +x create-xdc.sh
./create-xdc.sh ${{ github.event.repository.name }}
# This is just a little control flow hack. This ensures the correct file name is uploaded.
if [[ ${{ github.event.repository.name }} == *.xdc ]]
then
exit 1
fi
continue-on-error: true
- uses: ncipollo/release-action@v1
if: steps.build.outcome != 'success'
with:
artifacts: ${{ github.event.repository.name }}
- uses: ncipollo/release-action@v1
if: steps.build.outcome == 'success'
with:
artifacts: ${{ github.event.repository.name }}.xdc