Skip to content

Commit 4f726a0

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

File tree

2 files changed

+26
-56
lines changed

2 files changed

+26
-56
lines changed

.github/workflows/publish.yaml

Lines changed: 26 additions & 10 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: |
@@ -50,14 +53,14 @@ jobs:
5053
--output=bin/staticalize-linux \
5154
--include=VERSION \
5255
--allow-read --allow-write --allow-net main.ts
53-
54-
- name: Compile for Windows x64
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 main.ts
6164
6265
- name: Compile for macOS x64
6366
run: |
@@ -67,12 +70,25 @@ jobs:
6770
--include=VERSION \
6871
--allow-read --allow-write --allow-net main.ts
6972
70-
- name: Release
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
88+
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)