-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (33 loc) · 948 Bytes
/
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
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pre-build image and build release in devcontainer
uses: devcontainers/[email protected]
env:
# To fix ${localEnv:XAUTHORITY} mount error
XAUTHORITY: /tmp
with:
imageName: ghcr.io/dev6699/rspy-devcontainer
cacheFrom: ghcr.io/dev6699/rspy-devcontainer
push: always
runCmd: go build -o rspy main.go
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
rspy