mirror of
https://github.com/reisub0/sway-alttab
synced 2024-05-27 01:26:06 +02:00
Trying auto releas
Signed-off-by: reisub0 <reisub0@gmail.com>
This commit is contained in:
parent
6eaf83eb7f
commit
0c04e2812f
|
@ -44,6 +44,11 @@ jobs:
|
|||
- name: Build
|
||||
- uses: actions/checkout@v1
|
||||
run: cargo build --release --verbose
|
||||
- name: Upload build artifact
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: binary
|
||||
path: ./target/release/sway-alttab
|
||||
|
||||
publish:
|
||||
name: Publish to Cargo
|
||||
|
@ -65,6 +70,10 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
needs: [release-build]
|
||||
steps:
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: binary
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
|
@ -76,16 +85,17 @@ jobs:
|
|||
draft: false
|
||||
prerelease: false
|
||||
- name: Print tree
|
||||
shell: bash
|
||||
run: |
|
||||
echo HELLO
|
||||
tree -CAhF --dirsfirst
|
||||
# - name: Upload Release Asset
|
||||
# id: upload-release-asset
|
||||
# uses: actions/upload-release-asset@v1.0.1
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# with:
|
||||
# upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
# asset_path: ./target/release/sway-alttab
|
||||
# asset_name: sway-alttab
|
||||
# asset_content_type: application/octet-stream
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1.0.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: binary/sway-alttab
|
||||
asset_name: sway-alttab
|
||||
asset_content_type: application/octet-stream
|
||||
|
|
Loading…
Reference in New Issue