-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (38 loc) · 1.02 KB
/
justdeploy-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
36
37
38
39
40
41
42
name: Build and Release
concurrency: release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
go-version: [1.22.1]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install bun
uses: oven-sh/setup-bun@v1
- name: Build application
run: |
make build-ci
- name: Create zip file
run: |
zip justdeploy-linux-arm.zip bin/justdeploy-linux-arm
zip justdeploy-linux-x86.zip bin/justdeploy-linux-x86
zip justdeploy-darwin-arm.zip bin/justdeploy-darwin-arm
zip justdeploy-darwin-x86.zip bin/justdeploy-darwin-x86
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
justdeploy-linux-arm.zip
justdeploy-linux-x86.zip
justdeploy-darwin-arm.zip
justdeploy-darwin-x86.zip