Skip to content

Commit d628919

Browse files
authored
Add GitHub Actions config
This config should auto-publish a new release when a tag is pushed, and name it the same as the tag is named. Only way to test it is to try it!
1 parent 3da6834 commit d628919

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/main.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
tags:
5+
- *
6+
paths:
7+
- Package Managers.alfredworkflow
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@master
16+
- name: Rename Alfred Workflow
17+
run: mv "Package Managers.alfredworkflow" Package.Managers.alfredworkflow
18+
- name: Create GitHub Release
19+
uses: elgohr/Github-Release-Action@1.1
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
with:
23+
args: ${{ github.ref }}
24+
needs: Rename Alfred Workflow
25+
- name: GitHub Upload Release Artifacts
26+
uses: Roang-zero1/github-upload-release-artifacts-action@v2.0.0
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
with:
30+
args:
31+
- Package.Managers.alfredworkflow
32+
needs: Create GitHub Release

0 commit comments

Comments
 (0)