feat: add release workflow (#2)

This commit is contained in:
seth
2023-07-19 02:51:10 +00:00
committed by GitHub
parent 16bd754a82
commit a9de6744a1
11 changed files with 90 additions and 92 deletions

View File

@@ -1,9 +1,18 @@
import { install } from "./stages/install";
import { configure } from "./stages/configure";
import { push } from "./stages/push.ts";
import { getState, saveState } from "@actions/core";
const isPost = !!getState("isPost");
const main = async () => {
await install();
await configure();
};
main();
if (!isPost) {
saveState("isPost", true);
main();
} else {
push();
}

View File

@@ -1,7 +0,0 @@
import { push } from "./stages/push";
const main = async () => {
await push();
};
main();

View File

@@ -16,7 +16,6 @@ export const install = async () => {
if (!r.ok) {
core.setFailed(`Action failed with error: ${r.statusText}`);
core.endGroup();
process.exit(1);
}