Updated socat workflow

This commit is contained in:
takeshix 2021-04-19 13:57:43 +02:00
parent 176cff87c7
commit 7e3ae1499c

View file

@ -6,6 +6,8 @@ jobs:
name: Build socat x86
runs-on: ubuntu-latest
container: muslcc/x86_64:i686-linux-musl
outputs:
version: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
steps:
- name: Checkout
uses: actions/checkout@v2
@ -113,3 +115,35 @@ jobs:
with:
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
create-release:
name: Create socat Release
runs-on: ubuntu-latest
needs: [build-x86, build-x86_64, build-armhf, build-aarch64]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare Environment
run: mkdir /tmp/releases
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
path: /tmp/releases
- name: List Artifacts
run: ls -laR /tmp/releases
- name: Tag Release
run: |
git tag "${{ needs.build-x86.outputs.version }}"
git push origin "${{ needs.build-x86.outputs.version }}"
- name: Create Release
uses: ncipollo/release-action@v1
with:
name: ${{ needs.build-x86.outputs.version }}
tag: ${{ needs.build-x86.outputs.version }}
artifacts: "/tmp/releases/*/*"
token: ${{ secrets.GITHUB_TOKEN }}