Skip to content

Commit 1257600

Browse files
committed
Update build.yml to take account of environment and only trigger of commits to main (which is implicitly when a PR is merged to main anyway)
2 parents ae2047c + 1d76663 commit 1257600

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
name: Build release
22

33
on:
4-
pull_request:
4+
push:
55
branches:
66
- main
7-
types: [closed]
87

98
env:
109
CI: true
@@ -19,8 +18,7 @@ jobs:
1918
permissions:
2019
contents: write
2120
runs-on: ubuntu-latest
22-
environment: production # will be develop.
23-
if: github.event.pull_request.merged
21+
environment: production
2422
steps:
2523
- name: Authenticate with GitHub App
2624
uses: actions/create-github-app-token@v1
@@ -54,7 +52,7 @@ jobs:
5452
env:
5553
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
5654
with:
57-
commitish: ${{ github.ref }}
55+
commitish: ${{ github.sha }}
5856
tag_name: ${{ steps.version.outputs.VERSION }}
5957
release_name: ${{ steps.version.outputs.VERSION }}
6058
draft: false

0 commit comments

Comments
 (0)