Skip to content

Commit

Permalink
build: update readme at the very end
Browse files Browse the repository at this point in the history
  • Loading branch information
vintagesucks committed Oct 22, 2022
1 parent 1c8ac12 commit 7724122
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions .github/workflows/build.yml
Expand Up @@ -28,9 +28,6 @@ jobs:
image: ubuntu:${{ matrix.ubuntu-version }}
options: --user root
steps:
- uses: actions/checkout@v3.1.0
if: github.event_name == 'pull_request' && matrix.ubuntu-version == 'jammy'

- name: Create binaries folder
run: mkdir binaries

Expand Down Expand Up @@ -133,6 +130,30 @@ jobs:
- name: magick -list format
run: magick -list format

- name: Prefix binaries with Ubuntu version
run: cd binaries && for f in * ; do mv -- "$f" "${{ matrix.ubuntu-version }}_$f" ; done

- name: List binaries
run: ls binaries

- name: Archive binary artifacts
uses: actions/upload-artifact@v3
with:
name: binaries
path: binaries

- name: Upload binaries to GitHub Release
if: contains(github.ref, 'tags')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -e
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
bash ./upload.sh binaries/*
- uses: actions/checkout@v3.1.0
if: github.event_name == 'pull_request' && matrix.ubuntu-version == 'jammy'

- name: Update README
if: github.event_name == 'pull_request' && matrix.ubuntu-version == 'jammy'
run: |
Expand All @@ -153,28 +174,8 @@ jobs:
with:
token: ${{ secrets.PAT }}
commit-message: 'Update README [skip ci]'
committer: 'Nikolas Evers <vintagesucks@users.noreply.github.com>'
branch: '${{ github.ref_name }}'
delete-branch: true
title: '${{ github.event.pull_request.title }}'
body: '${{ github.event.pull_request.body }}'

- name: Prefix binaries with Ubuntu version
run: cd binaries && for f in * ; do mv -- "$f" "${{ matrix.ubuntu-version }}_$f" ; done

- name: List binaries
run: ls binaries

- name: Archive binary artifacts
uses: actions/upload-artifact@v3
with:
name: binaries
path: binaries

- name: Upload binaries to GitHub Release
if: contains(github.ref, 'tags')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -e
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
bash ./upload.sh binaries/*

0 comments on commit 7724122

Please sign in to comment.