From 13671f5970363bad53a5f07acb8e198f938878a1 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 25 Jun 2023 03:48:46 -0400 Subject: [PATCH] refactor: switch to github actions --- src/index.ts | 2 +- templates/ci.yml | 13 ++++++++++++ templates/circleci.yml | 45 ------------------------------------------ 3 files changed, 14 insertions(+), 46 deletions(-) create mode 100644 templates/ci.yml delete mode 100644 templates/circleci.yml diff --git a/src/index.ts b/src/index.ts index c0064f2..1d1670c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -19,7 +19,7 @@ export default async function (): Promise { return { extends: ["presetter-preset-strict"], template: { - ".circleci/config.yml": resolve(TEMPLATES, "circleci.yml"), + ".github/workflows/ci.yml": resolve(TEMPLATES, "ci.yml"), }, variable: DEFAULT_VARIABLE, supplementaryConfig: { diff --git a/templates/ci.yml b/templates/ci.yml new file mode 100644 index 0000000..edc4109 --- /dev/null +++ b/templates/ci.yml @@ -0,0 +1,13 @@ +name: Build/Publish + +on: + push: + branches: + - master + - develop + - develop-* + +jobs: + main: + uses: lumeweb/github-node-deploy-workflow/.github/workflows/main.yml@master + secrets: inherit diff --git a/templates/circleci.yml b/templates/circleci.yml deleted file mode 100644 index 73affb4..0000000 --- a/templates/circleci.yml +++ /dev/null @@ -1,45 +0,0 @@ -version: 2.1 - -orbs: - node: circleci/node@5.1.0 - ssh: credijusto/ssh@0.5.2 -workflows: - release: - jobs: - - node/run: - name: build - npm-run: build - post-steps: - - persist_to_workspace: - root: . - paths: - - lib/ - - filters: - branches: - only: - - master - - develop - - /^develop-.*$/ - - node/run: - name: release - npm-run: semantic-release - requires: - - build - filters: - branches: - only: - - master - - develop - - /^develop-.*$/ - - context: - - publish - setup: - - attach_workspace: - at: ./ - - add_ssh_keys: - fingerprints: - - "47:cf:a1:17:d9:81:8e:c5:51:e5:53:c8:33:e4:33:b9" - - ssh/ssh-add-host: - host_url: GITEA_HOST