-
Notifications
You must be signed in to change notification settings - Fork 1
/
package-release.yaml.old
45 lines (34 loc) · 1.14 KB
/
package-release.yaml.old
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
name: Package Release
on:
push:
branches:
- main
jobs:
build-and-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
name: Setup .NET Core
with:
dotnet-version: '3.1.x' # SDK Version to use; x will use the latest version of the 3.1 channel
- name: Publish Release
run: dotnet publish -r linux-arm -c Release -o latestrelease *sln
- run: mkdir -p release
- name: Package files in tar
run: tar -cf release/falconpitwitter.tar latestrelease/*
- run: rm -rf latestrelease
# - run: git config user.name github-actions
# - run: git config user.email github-actions@github.com
# - run: git add fptrelease/
# - run: git commit -m "Committed latest release" --allow-empty
- run: git tag $(dotnet run --project Almostengr.FalconPiTwitter --version)
- run: git push --tags
- run: git push
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: fptrelease/falconpitwitter.tar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}