Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Nov 22, 2023
1 parent db69d83 commit 1d0562d
Show file tree
Hide file tree
Showing 6 changed files with 198 additions and 93 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "CI"
# on: [push]
on:
workflow_dispatch:
push:

jobs:
test-tauri:
Expand Down
81 changes: 0 additions & 81 deletions .github/workflows/release-signer.yaml

This file was deleted.

17 changes: 6 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Presign
run: ls -hal binaries
run: |
ls -hal binaries
sha1sum binaries/*
- name: Sign Windows Binaries
run: |
docker run -v "./binaries:/code/binaries" ghcr.io/sslcom/codesigner:latest batch_sign \
Expand All @@ -129,22 +131,16 @@ jobs:
ES_CREDENTIAL_ID: "${{ secrets.ES_CREDENTIAL_ID }}"
ES_TOTP_SECRET: "${{ secrets.ES_TOTP_SECRET }}"
- name: Postsign
run: ls -hal binaries
# TODO: can we make it overwrite the draft bins somehow?
- uses: actions/upload-artifact@v3
with:
name: signed-windows-bins
path: |
binaries/signed
run: |
ls -hal binaries
sha1sum binaries/*
- name: Create release or skip
id: create-release
uses: actions/github-script@v7
with:
script: |
import fs from "node:fs";
const releaseId = "${{ needs.create-release.outputs.release_id }}";
const octokit = getOctokit(GITHUB_TOKEN);
// read all files from the binariees dir
const files = fs.readdirSync("./binaries");
Expand Down Expand Up @@ -186,4 +182,3 @@ jobs:
console.log(uploadResponse);
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
},
"type": "module",
"devDependencies": {
"@actions/github": "^6.0.0",
"eslint": "^8.48.0",
"glob": "^10.3.10",
"prettier": "^3.0.3",
Expand Down
138 changes: 138 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1d0562d

Please sign in to comment.