forked from xbapps/xbvr
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (29 loc) · 1 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
38
39
name: release
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
submodules: 'true'
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build UI
run: cd ui && yarn install && yarn build
- name: Setup release environment
run: |-
echo 'GITHUB_TOKEN=${{secrets.GORELEASER_ACCESS_TOKEN}}' > .release-env
echo 'GITHUB_USER=${{github.event.repository.owner.login}}' >> .release-env
echo 'GITHUB_PROJECT=${{github.event.repository.name}}' >> .release-env
echo 'DOCKER_CREDS_FILE=.docker-creds' >> .release-env
echo '${{github.event.repository.owner.login}}:${{secrets.GORELEASER_ACCESS_TOKEN}}:ghcr.io' >> .docker-creds
- name: Release publish
run: make release