-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1.21 KB
/
Copy pathautomatic-releases.yml
File metadata and controls
39 lines (37 loc) · 1.21 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
name: automatic-releases-with-sha-action tests
on:
workflow_dispatch:
inputs:
tag1:
type: string
required: true
annotation1:
type: string
required: false
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- run: |
mkdir dist
echo "mock artifact 1" > ./dist/mockartifact-${{ inputs.tag1 }}-windows
echo "mock artifact 2" > ./dist/mockartifact-${{ inputs.tag1 }}-linux
echo "mock artifact 3" > ./dist/mockartifact-${{ inputs.tag1 }}-macos
- name: Release with annotation
if: inputs.annotation1 != ''
uses: plu5/automatic-releases-with-sha-action@main
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: ${{ inputs.tag1 }}
tag_annotation: ${{ inputs.annotation1 }}
prerelease: false
files: ./dist/*
- name: Release without annotation
if: inputs.annotation1 == ''
uses: plu5/automatic-releases-with-sha-action@main
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: ${{ inputs.tag1 }}
prerelease: false
files: ./dist/*