From 2f7fcdce7eadcef6b2d420daf0bec388d6299b54 Mon Sep 17 00:00:00 2001 From: nicola Date: Mon, 6 Apr 2020 20:02:45 +1000 Subject: [PATCH 1/6] Add github action workflow --- .../continuous-deployment-workflow.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/continuous-deployment-workflow.yml diff --git a/.github/workflows/continuous-deployment-workflow.yml b/.github/workflows/continuous-deployment-workflow.yml new file mode 100644 index 0000000..4aefbae --- /dev/null +++ b/.github/workflows/continuous-deployment-workflow.yml @@ -0,0 +1,30 @@ +name: Deployment Workflow + +on: + push: + branches: + - master + paths-ignore: + - README.md + +jobs: + build-and-deploy: + name: Deploy Website + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install Dependencies + run: yarn + + - name: Deploy + run: yarn deploy From 47227dc057df28fa0cc280bf947bf555d476c676 Mon Sep 17 00:00:00 2001 From: nicola Date: Mon, 6 Apr 2020 20:20:52 +1000 Subject: [PATCH 2/6] Edit workflow for continous-deployment --- .github/workflows/continuous-deployment-workflow.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/continuous-deployment-workflow.yml b/.github/workflows/continuous-deployment-workflow.yml index 4aefbae..73fa5e1 100644 --- a/.github/workflows/continuous-deployment-workflow.yml +++ b/.github/workflows/continuous-deployment-workflow.yml @@ -18,13 +18,9 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Setup Node.js + - name: Install App uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - - name: Install Dependencies run: yarn - - - name: Deploy run: yarn deploy From 8c080053fabc31bf560531281ff8a598e423b5a6 Mon Sep 17 00:00:00 2001 From: nicola Date: Mon, 6 Apr 2020 20:22:39 +1000 Subject: [PATCH 3/6] Edit yml workflow file --- .github/workflows/continuous-deployment-workflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-deployment-workflow.yml b/.github/workflows/continuous-deployment-workflow.yml index 73fa5e1..9d4fc6f 100644 --- a/.github/workflows/continuous-deployment-workflow.yml +++ b/.github/workflows/continuous-deployment-workflow.yml @@ -22,5 +22,5 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - run: yarn - run: yarn deploy + - run: yarn + - run: yarn deploy From d37a20696a7a025d3b954a4061db8ad3f74181b9 Mon Sep 17 00:00:00 2001 From: nicola Date: Mon, 6 Apr 2020 20:29:26 +1000 Subject: [PATCH 4/6] Try new approach for workflow --- .../continuous-deployment-workflow.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/continuous-deployment-workflow.yml b/.github/workflows/continuous-deployment-workflow.yml index 9d4fc6f..92b1c40 100644 --- a/.github/workflows/continuous-deployment-workflow.yml +++ b/.github/workflows/continuous-deployment-workflow.yml @@ -11,16 +11,14 @@ jobs: build-and-deploy: name: Deploy Website runs-on: ubuntu-latest - strategy: - matrix: - node-version: [12.x] steps: - - uses: actions/checkout@v2 + - name: Git checkout + uses: actions/checkout@v1 - - name: Install App - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: yarn - - run: yarn deploy + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: '12.x' + - run: yarn + - run: yarn deploy From df02917d5aaadf73c27d77f87ac14c0ef67edee4 Mon Sep 17 00:00:00 2001 From: nthouliss <53867736+nthouliss@users.noreply.github.com> Date: Mon, 6 Apr 2020 20:33:58 +1000 Subject: [PATCH 5/6] Create nodejs.yml --- .github/workflows/nodejs.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..e4997f3 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,28 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: yarn + - run: yarn deploy From ce38acfc91b37d4e177688fc4cc4e7ff1c9645a1 Mon Sep 17 00:00:00 2001 From: nicola Date: Mon, 6 Apr 2020 20:36:41 +1000 Subject: [PATCH 6/6] Remove github action workflows --- .../continuous-deployment-workflow.yml | 24 ---------------- .github/workflows/nodejs.yml | 28 ------------------- 2 files changed, 52 deletions(-) delete mode 100644 .github/workflows/continuous-deployment-workflow.yml delete mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/continuous-deployment-workflow.yml b/.github/workflows/continuous-deployment-workflow.yml deleted file mode 100644 index 92b1c40..0000000 --- a/.github/workflows/continuous-deployment-workflow.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Deployment Workflow - -on: - push: - branches: - - master - paths-ignore: - - README.md - -jobs: - build-and-deploy: - name: Deploy Website - runs-on: ubuntu-latest - - steps: - - name: Git checkout - uses: actions/checkout@v1 - - - name: Setup Node.js - uses: actions/setup-node@v1 - with: - node-version: '12.x' - - run: yarn - - run: yarn deploy diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml deleted file mode 100644 index e4997f3..0000000 --- a/.github/workflows/nodejs.yml +++ /dev/null @@ -1,28 +0,0 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [12.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: yarn - - run: yarn deploy