-
Notifications
You must be signed in to change notification settings - Fork 116
51 lines (49 loc) · 1.38 KB
/
deploy.yml
File metadata and controls
51 lines (49 loc) · 1.38 KB
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
name: Deploy to Github Releases
on:
pull_request:
types: [closed]
branches:
- master
- 'releases/**'
jobs:
pre:
name: Prepare workflow run
runs-on: ubuntu-latest
outputs:
skip: ${{ steps.skip-check.outputs.should_skip }}
steps:
- name: Check if workflow should be skipped
id: skip-check
uses: fkirc/skip-duplicate-actions@v5
with:
github_token: ${{ github.token }}
paths_ignore: '["**.md", "dev/**"]'
build:
name: Build
needs: pre
if: ${{ needs.pre.outputs.skip != 'true' && github.event.pull_request.merged }}
uses: ./.github/workflows/build.yml
with:
skip_tests: true
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Create Github release
id: create-release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/heads/master')
with:
name: "${{ needs.build.outputs.version_tag }}: ${{ github.event.pull_request.title }}"
tag_name: ${{ needs.build.outputs.version_tag }}
body: ${{ github.event.pull_request.body }}
files: |
dist/cf-mendix-buildpack.zip
token: ${{ secrets.GITHUB_TOKEN }}