mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
chore(builds): allow creating beta release
This commit is contained in:
parent
9d3011fe2c
commit
cb27b0993d
1 changed files with 5 additions and 4 deletions
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
@ -2,6 +2,7 @@ on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
||||||
|
- 'beta'
|
||||||
|
|
||||||
name: Upload Release Assets
|
name: Upload Release Assets
|
||||||
|
|
||||||
|
@ -17,7 +18,7 @@ jobs:
|
||||||
- name: Set up PHP
|
- name: Set up PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: 8.0
|
php-version: 8.1
|
||||||
tools: composer:v2
|
tools: composer:v2
|
||||||
extensions: pdo_sqlite, zip, gd
|
extensions: pdo_sqlite, zip, gd
|
||||||
- name: Install PHP dependencies
|
- name: Install PHP dependencies
|
||||||
|
@ -27,7 +28,7 @@ jobs:
|
||||||
- name: Set up Node
|
- name: Set up Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: 16
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: |
|
run: |
|
||||||
sudo apt install pngquant zip unzip
|
sudo apt install pngquant zip unzip
|
||||||
|
@ -57,7 +58,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing its ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: /tmp/koel-${{ steps.get_version.outputs.VERSION }}.zip
|
asset_path: /tmp/koel-${{ steps.get_version.outputs.VERSION }}.zip
|
||||||
asset_name: koel-${{ steps.get_version.outputs.VERSION }}.zip
|
asset_name: koel-${{ steps.get_version.outputs.VERSION }}.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
@ -67,7 +68,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing its ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: /tmp/koel-${{ steps.get_version.outputs.VERSION }}.tar.gz
|
asset_path: /tmp/koel-${{ steps.get_version.outputs.VERSION }}.tar.gz
|
||||||
asset_name: koel-${{ steps.get_version.outputs.VERSION }}.tar.gz
|
asset_name: koel-${{ steps.get_version.outputs.VERSION }}.tar.gz
|
||||||
asset_content_type: application/gzip
|
asset_content_type: application/gzip
|
||||||
|
|
Loading…
Reference in a new issue