-
Notifications
You must be signed in to change notification settings - Fork 33
executable file
·37 lines (37 loc) · 994 Bytes
/
build.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
name: build
on:
schedule:
- cron: '0 */12 * * *'
push:
branches: [ main ]
paths:
- '**.sh'
- Dockerfile
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: build
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
uses: ./
- name: Upload
uses: actions/upload-artifact@v3.0.0
with:
name: v5.${{ env.minor }}.${{ env.patch }}
path: /home/runner/work/_temp/_github_home/nginx.deb
- name: Update
if: ${{ env.change }}
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update hash and version
- name: Release
if: ${{ env.change }}
uses: softprops/action-gh-release@v1
with:
files: /home/runner/work/_temp/_github_home/nginx.deb
body: "SHA256: ${{ env.hash }}"
tag_name: v5.${{ env.minor }}.${{ env.patch }}
generate_release_notes: false