Merge pull request #18 from aliefprihantoro/v2 #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build" | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'src/**/*.ts' | |
- '!src/**/*.d.ts' | |
- 'src/**/*.css' | |
- 'tailwind.config.mjs' | |
- 'postcss.config.cjs' | |
- 'astro.config.mjs' | |
workflow_dispatch: | |
inputs: | |
title: | |
description: 'testing e2e' | |
required: false | |
permissions: | |
contents: write | |
discussions: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: eslint | |
run: pnpm lint | |
- name: build blogger template | |
run: pnpm build | |
- name: Release with Notes | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
dist/blogger.xml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |