-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (59 loc) · 1.75 KB
/
prerelease.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Prerelease
on:
push:
branches:
- develop
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: 'true'
fetch-depth: 0
- name: remove develop-latest tag if exists
run: |
if git tag|grep "develop-latest";then git tag -d develop-latest && git push origin :develop-latest;fi
- name: add tag
run: |
git checkout develop
git tag develop-latest
git push --tags
- name: create release
uses: actions/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.repos.createRelease({
...context.repo,
draft: false,
prerelease: true,
tag_name: "develop-latest",
name: "Develop Latest",
target_commitish: process.env.GITHUB_SHA,
body: "This is a beta release.",
});
- name: download front
run: |
mkdir dist && cd dist
curl -L -o www.tar.gz https://github.com/wonder-wonder/cakemix-front/releases/download/develop-latest/www.tar.gz
tar xf www.tar.gz
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build container image
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm/v7,linux/arm64
context: .
push: true
tags: |
ghcr.io/wonder-wonder/cakemix:develop-latest