Files
offline-map-tile-downloader/.github/workflows/release.yml
T
dependabot[bot] adbabfb39e Build(deps): Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 12:55:47 +00:00

96 lines
2.8 KiB
YAML

name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
name: Build
# https://github.com/actions/virtual-environments/
runs-on: ubuntu-22.04
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v5
# https://github.com/marketplace/actions/setup-go-environment
- name: 🔧 Setup go
uses: actions/setup-go@v5
- name: 🍳 Build
run: make
- name: 🌡️ Test
run: ./offline-map-tile-downloader --help
# Upload binaries
# https://github.com/marketplace/actions/upload-a-build-artifact
- name: 📤 Upload
uses: actions/upload-artifact@v4
with:
name: offline-map-tile-downloader-artifact
path: offline-map-tile-downloader-*
retention-days: 1
test-linux:
name: Test Linux
needs: build
runs-on: ubuntu-latest
steps:
# Download binaries
# https://github.com/marketplace/actions/download-a-build-artifact
- name: 📥 Download
uses: actions/download-artifact@v4
with:
name: offline-map-tile-downloader-artifact
- name: 🌡️ Test
run: chmod +x offline-map-tile-downloader-linux-x86_64 && ./offline-map-tile-downloader-linux-x86_64 --help
test-macos:
name: Test macOS
needs: build
runs-on: macos-latest
steps:
- name: 📥 Download
uses: actions/download-artifact@v4
with:
name: offline-map-tile-downloader-artifact
- name: 🌡️ Test
run: chmod +x offline-map-tile-downloader-macos-x86_64 && ./offline-map-tile-downloader-macos-x86_64 --help
test-windows:
name: Test Windows
needs: build
runs-on: windows-latest
steps:
- name: 📥 Download
uses: actions/download-artifact@v4
with:
name: offline-map-tile-downloader-artifact
- name: 🌡️ Test
run: .\offline-map-tile-downloader-windows-x86_64.exe --help
release:
name: Release
needs: [test-linux, test-macos, test-windows]
runs-on: ubuntu-latest
steps:
# Download all artifacts to the current working directory
- name: 📥 Download gcosts
uses: actions/download-artifact@v4
with:
name: offline-map-tile-downloader-artifact
# Release, upload files
# https://github.com/softprops/action-gh-release
- name: ✨ Release
uses: softprops/action-gh-release@v2.2.2
with:
files: |
offline-map-tile-downloader-linux-x86_64
offline-map-tile-downloader-linux-arm64
offline-map-tile-downloader-macos-x86_64
offline-map-tile-downloader-macos-arm64
offline-map-tile-downloader-windows-x86_64.exe
offline-map-tile-downloader-windows-arm64.exe