From 83d4e80d529e4e2c51b1044836ed20ea2248db1a Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Wed, 21 Jun 2023 09:26:55 -0400 Subject: [PATCH] github action --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..95308a8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +on: push +name: Build Angular +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v1 + + - name: Cache node modules + uses: actions/cache@v1 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Node ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install and npm run build + run: | + npm i + npm run build:prod + - name: Push Build to Releases + uses: ncipollo/release-action@v1 + with: + artifacts: "dist/angular-githubaction/*" + token: ${{ secrets.TOKEN }} \ No newline at end of file