-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.18 KB
/
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
---
name: Release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build the binary
run: COMMIT=${{ github.sha }} DATE=$(date --iso-8601=seconds) VERSION=${{ github.ref_name }} make build
- name: Build and publish the container image for ${{ github.repository }}:${{ github.ref_name }}
uses: macbre/push-to-ghcr@v13
with:
image_name: ${{ github.repository }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dockerfile: build/container/Dockerfile
image_tag: ${{ github.ref_name }}
- name: Build and publish the container image for ${{ github.repository }}:latest
uses: macbre/push-to-ghcr@v13
with:
image_name: ${{ github.repository }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dockerfile: build/container/Dockerfile
image_tag: latest
- name: Create a Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
name: TL-WPA4220 ${{ github.ref_name }}
files: tlwpa4220