Skip to content

ci: add release workflow #1

ci: add release workflow

ci: add release workflow #1

Workflow file for this run

name: Release
on:
push:
branches:
- main
env:
RELEASE_TAR: ./dist/hugo-geekdoc.tar.gz
jobs:
release:
steps:

Check failure on line 13 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml (Line: 13, Col: 5): Required property is missing: runs-on
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build assets
run: npm run build
- name: Pack
run: npm run pack
- name: Extract release to directory
run: |
tar -xf ./dist/hugo-geekdoc.tar.gz --directory ./dist/release
- name: Push to dist branch
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist
FOLDER: dist/release
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}