mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-22 19:25:18 -04:00
deployments: Fix main branch deployment and overrides (#1801)
* Use different environment per PR Signed-off-by: Erik Michelson <github@erik.michelson.eu> * Fix main deployment by using CI-aware build script Signed-off-by: Erik Michelson <github@erik.michelson.eu> * Use PR title and number in netlify deployment list Signed-off-by: Erik Michelson <github@erik.michelson.eu> * Use exec Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
523701b3d2
commit
6e1847d1e9
4 changed files with 17 additions and 4 deletions
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
|
@ -49,14 +49,14 @@ jobs:
|
|||
with:
|
||||
step: start
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
env: Preview
|
||||
env: "PR #${{ github.event.number }}"
|
||||
no_override: false
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
- name: Run netlify CLI deployment
|
||||
env:
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
run: bash netlify/deploy.sh "${{ github.event.number }}" "${{ github.head_ref }}"
|
||||
run: bash netlify/deploy.sh "${{ github.event.number }}" "${{ github.head_ref }}" "${{ github.event.pull_request.title }}"
|
||||
id: netlify-result
|
||||
|
||||
- name: Mark GitHub deployment as finished
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue