diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..7b4cf7c --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,32 @@ +on: + push: + branches: + - main + pull_request: + +jobs: + deploy: + runs-on: ubuntu-latest + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + steps: + - uses: actions/checkout@4 + with: + fetch-depth: 0 + - name: Setup Hugo + uses: peaceiris/actions-hugo@v3 + with: + hugo-version: '0.119.0' + extended: true + - uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + cache-dependency-path: '**/package-lock.json' + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.2 + - run: gem install asciidoctor asciidoctor-html5s + - run: npm ci + - run: hugo --minify