Skip to content

Commit

Permalink
Deleted super-mode-calculator/teamcity.sh and Fix yaml syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
LAKSHMIRPILLAI committed Aug 9, 2023
1 parent 482c821 commit b52b40c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 40 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/super-mode-calculator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ on:
branches:
- main
jobs:
build_super-mode-calculator:
super_mode_calculator_build:
if: github.repository_owner == 'guardian'
# Required by actions-riff-raff
permissions:
id-token: write
contents: read

name: Build super-mode-calculator
runs-on: ubuntu-latest
permissions:
id-token: write # needed by actions-riff-raff
contents: read # needed because the repo is private
steps:
- name: Env
run: env

- name: Checkout repo
uses: actions/checkout@v3

Expand All @@ -25,18 +30,18 @@ jobs:
aws-region: eu-west-1

- name: Setup Node
uses: actions/setup-node@v3
uses: guardian/actions-setup-node@v2.4.1
with:
node-version-file: './super-mode-calculator/.nvmrc'
cache: 'yarn'
cache-dependency-path: ./super-mode-calculator/yarn.lock

- name: Yarn
run: |
yarn install
yarn lint
yarn run build
working-directory: ./super-mode-calculator
- name: Yarn
run: |
yarn install
yarn lint
yarn run build
working-directory: ./super-mode-calculator

- name: Copy files to Riff Raff package
run: cp package.json riff-raff.yaml target
Expand All @@ -52,11 +57,11 @@ jobs:

- uses: guardian/actions-riff-raff@v2
with:
projectName: Support:super-mode-calculator
projectName: Support::super-mode-calculator
configPath: ./super-mode-calculator/riff-raff.yaml
buildNumberOffset: 250
contentDirectories: |
super-mode-calculator:
- ./super-mode-calculator/target/super-mode-calculator.zip
super-mode-calculator-cloudformation:
- ./super-mode-calculator/cfn.yaml
- ./super-mode-calculator/cloudformation/cfn.yaml
27 changes: 0 additions & 27 deletions super-mode-calculator/teamcity.sh

This file was deleted.

0 comments on commit b52b40c

Please sign in to comment.