You've already forked tf2wikipricing
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: debian-latest
|
|
outputs:
|
|
version: ${{ steps.version.outputs.version }}
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4.1.2
|
|
- name: Read package version
|
|
uses: tyankatsu0105/read-package-version-actions@v1
|
|
id: version
|
|
- name: Install dependencies
|
|
run: bun install
|
|
- name: Build project
|
|
run: bun run build
|
|
- name: Archive production artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: tf2wikipricing.user.js
|
|
path: |
|
|
dist/userscript/tf2wikipricing.user.js
|
|
deploy:
|
|
runs-on: debian-latest
|
|
needs: build
|
|
steps:
|
|
- name: Download release artifacts
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: tf2wikipricing.user.js
|
|
path: userscript
|
|
- name: Create release
|
|
id: use-go-action
|
|
uses: akkuman/gitea-release-action@v1
|
|
with:
|
|
title: "v${{ need.build.outputs.version }}"
|
|
name: "v${{ need.build.outputs.version }}"
|
|
files: |
|
|
userscript/**
|
|
sha256sum: true |