-
Notifications
You must be signed in to change notification settings - Fork 11
69 lines (62 loc) · 1.94 KB
/
build-release-main-page.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
62
63
64
65
66
67
68
69
name: Create Page Weekly Release
on:
workflow_run:
workflows: ["Unity Cloud Build Release"]
types:
- completed
jobs:
get-info:
name: Get Info
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
latest_version: ${{ steps.get_version.outputs.latest_version }}
full_version: ${{ steps.get_version.outputs.next_full_version }}
tag_version: ${{ steps.get_version.outputs.next_tag_version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: 'main'
- name: Get version
id: get_version
uses: ./.github/actions/version
generate-release-info:
name: Generate release info
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
timeout-minutes: 5
needs: get-info
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: 'main'
- name: Apply tag to branch
run: |
TAG=${{ needs.get-info.outputs.tag_version }}
git tag $TAG
git push origin $TAG
- name: Download artifacts
uses: dawidd6/action-download-artifact@v6
with:
run_id: ${{ github.event.workflow_run.id }}
name: Decentraland_.*
name_is_regexp: true
skip_unpack: true
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
draft: true # Swap to auto-release!
tag_name: ${{ needs.get-info.outputs.tag_version }}
target_commitish: ${{ github.sha }}
files: |
./Decentraland_windows64.zip
./Decentraland_macos.zip
./Decentraland_windows64_epic.zip
./Decentraland_macos_epic.zip
fail_on_unmatched_files: true