Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
martclanor committed Feb 8, 2025
1 parent a60ff97 commit c8ce16e
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/lint-format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

name: Lint and Format

on: push
on:
push:
branches:
- develop
pull_request:
branches:
- main
- develop

jobs:
ruff-lint-format:
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow creates a release when a new tag is pushed to main

name: Release

on:
push:
tags:
- "*.*.*"
branches:
- auto_release_publish

jobs:
create-release:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install project dependencies
run: npm ci

- name: Package Extension
id: package_extension
run: npm run package

- name: Release
uses: softprops/action-gh-release@v2
with:
name: ${{ github.ref_name }}-alpha
files: ${{ steps.package_extension.outputs }}
prerelease: true

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >-
gh release create ${{ github.ref_name }}-alpha "*.vsix"
9 changes: 8 additions & 1 deletion .github/workflows/tmgrammar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

name: TextMate Grammar

on: push
on:
push:
branches:
- develop
pull_request:
branches:
- main
- develop

jobs:
grammar-tests:
Expand Down

0 comments on commit c8ce16e

Please sign in to comment.