mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2024-12-29 02:57:24 +02:00
add zip downloads to releases wth action
This commit is contained in:
parent
51b86a6841
commit
9d6de84b20
37
.github/workflows/create-release-workflow.yml
vendored
Normal file
37
.github/workflows/create-release-workflow.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
jobs:
|
||||
test-npm:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
- uses: actions/setup-go@v2
|
||||
- name: Get release
|
||||
id: get_release
|
||||
uses: bruceadams/get-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
- run: make gen_release
|
||||
- name: Upload release (windows)
|
||||
uses: actions/upload-release-asset@v1.0.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
with:
|
||||
upload_url: ${{ steps.get_release.outputs.upload_url }}
|
||||
asset_path: ./factorio-server-manager/factorio-server-manager-windows.zip
|
||||
asset_name: factorio-server-manager-windows-${GITHUB_REF#refs/*/}.zip
|
||||
asset_content_type: application/octet-stream
|
||||
- name: Upload release (linux)
|
||||
uses: actions/upload-release-asset@v1.0.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
with:
|
||||
upload_url: ${{ steps.get_release.outputs.upload_url }}
|
||||
asset_path: ./factorio-server-manager/factorio-server-manager-linux.zip
|
||||
asset_name: factorio-server-manager-linux-${GITHUB_REF#refs/*/}.zip
|
||||
asset_content_type: application/octet-stream
|
Loading…
Reference in New Issue
Block a user