mirror of https://github.com/lapce/lapce.git
add nightly release
This commit is contained in:
parent
dcec948185
commit
b26db0d51c
|
@ -41,22 +41,34 @@ jobs:
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
Compress-Archive ./target/release-lto/lapce.exe ./Lapce-windows-portable.zip
|
Compress-Archive ./target/release-lto/lapce.exe ./Lapce-windows-portable.zip
|
||||||
|
|
||||||
|
- if: github.event_name == 'workflow_dispatch'
|
||||||
|
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
|
||||||
|
- if: github.event_name == 'schedule'
|
||||||
|
run: echo 'TAG_NAME=nightly' >> $GITHUB_ENV
|
||||||
|
- if: github.event_name == 'push'
|
||||||
|
run: |
|
||||||
|
TAG_NAME=${{ github.ref }}
|
||||||
|
echo "TAG_NAME=${TAG_NAME#refs/tags/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Upload msi installer
|
- name: Upload msi installer
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
file: ./Lapce-windows.msi
|
file: ./Lapce-windows.msi
|
||||||
file_glob: true
|
file_glob: true
|
||||||
tag: ${{ github.ref }}
|
tag: ${{ env.TAG_NAME }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
prerelease: ${{ env.TAG_NAME == 'nightly' }}
|
||||||
- name: Upload portable
|
- name: Upload portable
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
file: ./Lapce-windows-portable.zip
|
file: ./Lapce-windows-portable.zip
|
||||||
file_glob: true
|
file_glob: true
|
||||||
tag: ${{ github.ref }}
|
tag: ${{ env.TAG_NAME }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
prerelease: ${{ env.TAG_NAME == 'nightly' }}
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
@ -76,22 +88,34 @@ jobs:
|
||||||
cp ./target/release-lto/lapce Lapce/
|
cp ./target/release-lto/lapce Lapce/
|
||||||
tar -zcvf ./Lapce-linux.tar.gz Lapce
|
tar -zcvf ./Lapce-linux.tar.gz Lapce
|
||||||
gzip -c "./target/release-lto/lapce-proxy" > ./lapce-proxy-linux.gz
|
gzip -c "./target/release-lto/lapce-proxy" > ./lapce-proxy-linux.gz
|
||||||
|
|
||||||
|
- if: github.event_name == 'workflow_dispatch'
|
||||||
|
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
|
||||||
|
- if: github.event_name == 'schedule'
|
||||||
|
run: echo 'TAG_NAME=nightly' >> $GITHUB_ENV
|
||||||
|
- if: github.event_name == 'push'
|
||||||
|
run: |
|
||||||
|
TAG_NAME=${{ github.ref }}
|
||||||
|
echo "TAG_NAME=${TAG_NAME#refs/tags/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Upload Application
|
- name: Upload Application
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
file: ./Lapce-linux.tar.gz
|
file: ./Lapce-linux.tar.gz
|
||||||
file_glob: true
|
file_glob: true
|
||||||
tag: ${{ github.ref }}
|
tag: ${{ env.TAG_NAME }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
prerelease: ${{ env.TAG_NAME == 'nightly' }}
|
||||||
- name: Upload Application
|
- name: Upload Application
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
file: ./lapce-proxy-linux.gz
|
file: ./lapce-proxy-linux.gz
|
||||||
file_glob: true
|
file_glob: true
|
||||||
tag: ${{ github.ref }}
|
tag: ${{ env.TAG_NAME }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
prerelease: ${{ env.TAG_NAME == 'nightly' }}
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
|
@ -121,11 +145,22 @@ jobs:
|
||||||
uses: devbotsxyz/xcode-staple@v1
|
uses: devbotsxyz/xcode-staple@v1
|
||||||
with:
|
with:
|
||||||
product-path: "./target/release-lto/macos/Lapce-macos.dmg"
|
product-path: "./target/release-lto/macos/Lapce-macos.dmg"
|
||||||
|
|
||||||
|
- if: github.event_name == 'workflow_dispatch'
|
||||||
|
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
|
||||||
|
- if: github.event_name == 'schedule'
|
||||||
|
run: echo 'TAG_NAME=nightly' >> $GITHUB_ENV
|
||||||
|
- if: github.event_name == 'push'
|
||||||
|
run: |
|
||||||
|
TAG_NAME=${{ github.ref }}
|
||||||
|
echo "TAG_NAME=${TAG_NAME#refs/tags/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Upload Application
|
- name: Upload Application
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
file: ./target/release-lto/macos/Lapce-macos.dmg
|
file: ./target/release-lto/macos/Lapce-macos.dmg
|
||||||
file_glob: true
|
file_glob: true
|
||||||
tag: ${{ github.ref }}
|
tag: ${{ env.TAG_NAME }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
prerelease: ${{ env.TAG_NAME == 'nightly' }}
|
||||||
|
|
Loading…
Reference in New Issue