Skip to content

Commit ed1406d

Browse files
committed
Removed action and just pushing binaries
1 parent 24135c2 commit ed1406d

File tree

2 files changed

+30
-60
lines changed

2 files changed

+30
-60
lines changed

.github/workflows/publish.yaml

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ on:
55
tags:
66
- v*
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build:
1013
runs-on: ubuntu-latest
1114
steps:
1215
- name: Checkout
1316
uses: actions/checkout@v4
14-
17+
1518
- uses: denoland/setup-deno@v2
1619
with:
1720
deno-version: v2.x
@@ -20,7 +23,7 @@ jobs:
2023

2124
- name: Get Version
2225
id: vars
23-
run: echo ::set-output name=version::$(echo ${{github.ref_name}} | sed 's/^v//')
26+
run: echo "version=$(echo $GITHUB_REF_NAME | sed 's/^v//')" >> $GITHUB_OUTPUT
2427

2528
- name: Write Version file
2629
run: |
@@ -33,46 +36,59 @@ jobs:
3336
--target=aarch64-unknown-linux-gnu \
3437
--output=bin/staticalize-linux-arm64 \
3538
--include=VERSION \
36-
--allow-read --allow-write --allow-net main.ts
39+
--allow-read --allow-write --allow-net --allow-env main.ts
3740
3841
- name: Compile for macOS arm64
3942
run: |
4043
deno compile \
4144
--target=aarch64-apple-darwin \
4245
--output=bin/staticalize-macos-arm64 \
4346
--include=VERSION \
44-
--allow-read --allow-write --allow-net main.ts
47+
--allow-read --allow-write --allow-net --allow-env main.ts
4548
4649
- name: Compile for Linux x64
4750
run: |
4851
deno compile \
4952
--target=x86_64-unknown-linux-gnu \
5053
--output=bin/staticalize-linux \
5154
--include=VERSION \
52-
--allow-read --allow-write --allow-net main.ts
53-
54-
- name: Compile for Windows x64
55+
--allow-read --allow-write --allow-net --allow-env main.ts
56+
57+
- name: Compile for Windows x64
5558
run: |
5659
deno compile \
5760
--target=x86_64-pc-windows-msvc \
5861
--output=bin/staticalize-windows \
5962
--include=VERSION \
60-
--allow-read --allow-write --allow-net main.ts
63+
--allow-read --allow-write --allow-net --allow-env main.ts
6164
6265
- name: Compile for macOS x64
6366
run: |
6467
deno compile \
6568
--target=x86_64-apple-darwin \
6669
--output=bin/staticalize-macos \
6770
--include=VERSION \
68-
--allow-read --allow-write --allow-net main.ts
71+
--allow-read --allow-write --allow-net --allow-env main.ts
72+
73+
- name: Compress binaries
74+
run: |
75+
cd bin
76+
77+
zip staticalize-windows.zip staticalize-windows.exe
78+
tar -czf staticalize-macos.tar.gz staticalize-macos
79+
tar -czf staticalize-macos-arm64.tar.gz staticalize-macos-arm64
80+
tar -czf staticalize-linux.tar.gz staticalize-linux
81+
tar -czf staticalize-linux-arm64.tar.gz staticalize-linux-arm64
82+
83+
rm staticalize-windows.exe \
84+
staticalize-macos \
85+
staticalize-macos-arm64 \
86+
staticalize-linux \
87+
staticalize-linux-arm64
6988
70-
- name: Release
89+
- name: Upload to Release
7190
uses: softprops/action-gh-release@v2
7291
with:
7392
token: ${{ secrets.JACK_GITHUB_TOKEN }}
7493
make_latest: true
75-
files: |
76-
bin/*
77-
action.yaml
78-
README.md
94+
files: bin/*

action.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)