mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +00:00
ci(build): use head_ref instead of ref_name when available
This commit is contained in:
parent
a703a8a5ee
commit
2b60b3a5f0
1 changed files with 2 additions and 2 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -31,7 +31,7 @@ jobs:
|
|||
run: npm run lint
|
||||
# Create recursivelly the destiantion dir with
|
||||
# "--parrents where no error if existing, make parent directories as needed."
|
||||
- run: mkdir -p ./build/${{ github.ref_name }}
|
||||
- run: mkdir -p ./build/${{ github.head_ref || github.ref_name }}
|
||||
- name: Deploy to GitHub Pages
|
||||
if: ${{ github.actor != 'dependabot[bot]' }}
|
||||
uses: peaceiris/actions-gh-pages@v4
|
||||
|
|
@ -40,5 +40,5 @@ jobs:
|
|||
publish_dir: ./build
|
||||
# in stremio, we use `feat/features-name` or `fix/this-bug`
|
||||
# so we need a recursive creation of the destination dir
|
||||
destination_dir: ${{ github.ref_name }}
|
||||
destination_dir: ${{ github.head_ref || github.ref_name }}
|
||||
allow_empty_commit: true
|
||||
|
|
|
|||
Loading…
Reference in a new issue