Skip to content

Bump docker/build-push-action from 6.7.0 to 6.8.0 #2007

Bump docker/build-push-action from 6.7.0 to 6.8.0

Bump docker/build-push-action from 6.7.0 to 6.8.0 #2007

Workflow file for this run

---
name: Build
on:
push:
branches:
- master
tags:
- "v*"
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ["oldstable", "stable"]
os: [ubuntu-22.04]
steps:
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v4
- name: Get external dependencies (Ubuntu)
if: matrix.os == 'ubuntu-22.04'
run: sudo apt update && sudo apt -y install build-essential libvips-dev
- name: Get Go dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -ldflags="-s -w" -v -o ../../build/chatterino-api
working-directory: cmd/api
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: chatterino-api-${{ matrix.go }}-${{ matrix.os }}
path: build/chatterino-api
create-release:
needs: build
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
with:
path: "project-git-repo"
- uses: actions/download-artifact@v4
with:
name: chatterino-api-1.22-ubuntu-22.04
path: bins/ubuntu/
- name: display structure
run: ls -lR
- name: rename files
run: |
mkdir final-bins
mv bins/ubuntu/chatterino-api final-bins/chatterino-api-ubuntu-x86_64
- name: build-changelog
run: sed "0,/## $(echo "$GITHUB_REF_VALUE" | cut -d '/' -f 3 | cut -c2-)/d" project-git-repo/CHANGELOG.md | sed '/^## /,+999999999999999999 d' | tail -n+2 | head -n-1 > release-body
env:
GITHUB_REF_VALUE: ${{ github.ref }}
- name: create release
uses: softprops/action-gh-release@v2
with:
body_path: release-body
files: |
final-bins/chatterino-api-ubuntu-x86_64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}