Skip to content

chore : version 1.2.0 #10

chore : version 1.2.0

chore : version 1.2.0 #10

Workflow file for this run

name: Build and Test
permissions:
contents: write
on:
push:
tags:
- 'v*'
jobs:
build:
strategy:
matrix:
os: [ linux, windows, darwin ]
arch: [ amd64, arm64, 386 ]
exclude:
- os: windows
arch: arm64
- os: darwin
arch: 386
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.2'
- name: Install dependencies
run: go get .
- run: |
mkdir scan2epub
cp README.md install.sh CHANGELOG.md scan2epub
- name: Build
run: |
name="scan2epub"
if [ "${{ matrix.os }}" = "windows" ]; then
name="${name}.exe"
fi
GOARCH=${{ matrix.arch }} GOOS=${{ matrix.os }} go build -o "scan2epub/${name}" .
- name: Archive
run: |
tar -czf \
scan2epub-${{ matrix.os }}-${{ matrix.arch }}-${{ github.ref_name }}.tar.gz scan2epub
- name: Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
body_path: CHANGELOG.md
draft: false
prerelease: false
files: |
scan2epub-${{ matrix.os }}-${{ matrix.arch }}-${{ github.ref_name }}.tar.gz