Skip to content
name: Build & Release GC armiarma scraper
on:
push:
branches:
- ci
concurrency:
group: gc-armiarma-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
go-version: [1.18.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Extract commit
id: commit
uses: prompt/actions-commit-hash@v3
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Dependencies
shell: bash
run: make dependencies
- name: Install
shell: bash
run: make install
- name: Build
shell: bash
run: make build