Skip to content

Commit

Permalink
add instagram token daemon w/ workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jasper-clarke committed Dec 14, 2024
1 parent 1dbf519 commit 24273e9
Show file tree
Hide file tree
Showing 2 changed files with 400 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release Build

on:
release:
types: [created]

jobs:
releases-matrix:
name: Release Binary
runs-on: ubuntu-latest
strategy:
matrix:
# Build for major platforms: Windows, macOS, and Linux
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
exclude:
# Exclude unsupported combinations
- goos: windows
goarch: arm64

steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
cache: true

- name: Build Binary
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
binary_name=""
if [ "${{ matrix.goos }}" = "windows" ]; then
binary_name="instatokend-${{ matrix.goos }}-${{ matrix.goarch }}.exe"
else
binary_name="instatokend-${{ matrix.goos }}-${{ matrix.goarch }}"
fi
go build -v -o "$binary_name" ./instatokend.go
- name: Upload Release Binary
uses: softprops/action-gh-release@v1
with:
files: instatokend-*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 24273e9

Please sign in to comment.