Skip to content

Commit

Permalink
feat: workflows maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Oct 13, 2024
1 parent 47cd21a commit f0008c3
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CD

on:
push:
tags: '*'

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4

- name: Install Dependencies
run: npm install

- name: Install VSCE
run: npm install -g @vscode/vsce

- name: Publish
env:
MARKETPLACE_ACCESS_TOKEN: ${{ secrets.MARKETPLACE_ACCESS_TOKEN }}
run: vsce publish --skip-license -p $MARKETPLACE_ACCESS_TOKEN
38 changes: 38 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4

- name: Install Dependencies
run: npm install

- name: Install VSCE
run: npm install -g @vscode/vsce

- name: Build
run: vsce package -o p2tas.vsix --skip-license

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: p2tas
path: p2tas.vsix
if-no-files-found: error
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Portal 2 TAS Tools

[![CI](https://github.com/p2sr/p2tas-lang/workflows/CI/badge.svg)](https://github.com/p2sr/p2tas-lang/actions?query=workflow%3ACI+branch%3Amaster)

Syntax highlighting, snippets and autocompletion for the Portal 2 TAS files, using the [SourceAutoRecord](https://github.com/p2sr/SourceAutoRecord) plugin.

## Installation
Expand Down

0 comments on commit f0008c3

Please sign in to comment.