diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index c7f0fcd7..f8db7b8a 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -1,4 +1,4 @@ -name: Deploy guidance site +name: Deploy guidance site to production on: workflow_dispatch: pull_request: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 8ad3a5d5..00000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Build and deploy docs -on: - push: - branches: - - main -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4.1.1 - with: - fetch-depth: 0 - - - uses: actions/setup-node@v4 - with: - node-version: lts/* - - - name: Install and Build - run: | - npm install - npm run build:docs - - - name: Deploy - uses: JamesIves/github-pages-deploy-action@v4.5.0 - with: - branch: gh-pages - folder: public diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index af04b8d3..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,78 +0,0 @@ -name: Publish package - -on: - pull_request: - branches: [ main ] - push: - branches: [ main ] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 'lts/*' - - run: npm ci - - run: npm run build:package - - uses: actions/upload-artifact@v4 - with: - name: mojds-package - path: package - - run: npm run build:dist - - run: npm run build:docs - - uses: actions/upload-artifact@v4 - with: - name: mojds-dist - path: dist - - test: - runs-on: ubuntu-latest - needs: build - - strategy: - matrix: - node-version: [14.x, 16.x, 18.x, 20.x, 21.x, 22.x] - - steps: - - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 - with: - name: mojds-package - path: package - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - name: Test Sass can be compiled - run: npm run test:sass - - publish: - runs-on: ubuntu-latest - needs: [build, test] - if: github.event_name == 'push' - - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - persist-credentials: false - - uses: actions/setup-node@v4 - with: - node-version: lts/* - - uses: actions/download-artifact@v4 - with: - name: mojds-package - path: package - - uses: actions/download-artifact@v4 - with: - name: mojds-dist - path: dist - - run: npm ci - - name: Publish to NPM - run: npm run ci:release - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}