Merge pull request #18 from Trivernis/actions

Actions
pull/19/head
Trivernis 4 years ago committed by GitHub
commit fcd1579d02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,6 +16,12 @@ jobs:
with: with:
toolchain: stable toolchain: stable
override: true override: true
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Cache cargo builds - name: Cache cargo builds
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
@ -34,11 +40,15 @@ jobs:
run: strip target/x86_64-unknown-linux-gnu/release/tobi-rs run: strip target/x86_64-unknown-linux-gnu/release/tobi-rs
- name: Move binaries - name: Move binaries
run: mv target/x86_64-unknown-linux-gnu/release/tobi-rs target/tobi-rs-linux-x86_64 run: mv target/x86_64-unknown-linux-gnu/release/tobi-rs target/tobi-rs-linux-x86_64
- name: Sign artifact
run: gpg --detach-sign --sign --armor --default-key steps.import_gpg.outputs.keyid --output target/tobi-rs-linux-x86_64.sig target/tobi-rs-linux-x86_64
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: tobi-rs-linux-x86_64 name: tobi-rs-linux-x86_64
path: target/tobi-rs-linux-x86_64 path: |
target/tobi-rs-linux-x86_64
target/tobi-rs-linux-x86_64.sig
- name: publish release - name: publish release
uses: "marvinpinto/action-automatic-releases@latest" uses: "marvinpinto/action-automatic-releases@latest"
with: with:
@ -47,3 +57,4 @@ jobs:
files: | files: |
LICENSE LICENSE
target/tobi-rs-linux-x86_64 target/tobi-rs-linux-x86_64
target/tobi-rs-linux-x86_64.sig

@ -43,3 +43,24 @@ jobs:
- name: Test binary - name: Test binary
run: cargo test --verbose run: cargo test --verbose
- name: Move binaries
run: mv target/debug/tobi-rs target/tobi-rs-linux-x86_64_debug
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Sign artifact
run: gpg --detach-sign --sign --armor --default-key steps.import_gpg.outputs.keyid --output target/tobi-rs-linux-x86_64_debug.sig target/tobi-rs-linux-x86_64_debug
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: tobi-rs-linux_debug
path: |
target/tobi-rs-linux-x86_64_debug
target/tobi-rs-linux-x86_64_debug.sig
Loading…
Cancel
Save