-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (55 loc) · 2.15 KB
/
release-dev.create-release-and-publish.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: "Release dev: Create Release & Publish Artifacts"
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
on:
workflow_dispatch:
push:
branches:
- v2.x
jobs:
update_github_dev_release:
name: Update Github dev Release
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v2
- name: Delete Release
uses: dev-drprasad/[email protected]
with:
delete_release: true # default: false
tag_name: 0.0.0-dev # tag name to delete
repo: hazelops/ize # target repo (optional). defaults to repo running this action
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install gemfury
run: |
sudo apt-get -y install ruby
sudo gem install gemfury
- name: List dev packages # Show list of linux packages in Gemfury
run: |
fury versions deb:ize --api-token=${{ secrets.FURY_ACCESS_TOKEN }}
fury versions rpm:ize --api-token=${{ secrets.FURY_ACCESS_TOKEN }}
continue-on-error: true
- name: Yank old versions of dev # Since we have AMD64 and ARM64 versions of ize - we need to run every remove action twice
run: |
fury yank deb:ize --version=0.0.0~dev --api-token=${{ secrets.FURY_ACCESS_TOKEN }}
fury yank deb:ize --version=0.0.0~dev --api-token=${{ secrets.FURY_ACCESS_TOKEN }}
fury yank rpm:ize --version=0.0.0~dev-1 --api-token=${{ secrets.FURY_ACCESS_TOKEN }}
fury yank rpm:ize --version=0.0.0~dev-1 --api-token=${{ secrets.FURY_ACCESS_TOKEN }}
continue-on-error: true
- name: Create Github Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: 0.0.0-dev
release_name: Dev Release
prerelease: true
body: |
Most recent dev release
- name: Sleep for 7 minutes
uses: whatnick/wait-action@master
with:
time: '7m'