Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasticFiasco committed Oct 17, 2023
1 parent 2baa939 commit 7caba63
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml → .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: CI/CD

on:
push:
Expand All @@ -12,7 +12,7 @@ on:
workflow_dispatch:

permissions:
contents: read
contents: write # Needed for the release script to create a release

jobs:
build:
Expand Down Expand Up @@ -40,3 +40,12 @@ jobs:
mkdir dist
mv src/bin/Release/*.nupkg ./dist
mv src/bin/Release/*.snupkg ./dist
# Release
- run: |
pushd ./scripts
npm ci
npm run release
popd
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions scripts/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "scripts",
"version": "1.0.0",
"description": "",
"private": true,
"scripts": {
"release": "node ./publish-on-tag.js"
},
"devDependencies": {
"@octokit/rest": "20.0.2"
}
}

0 comments on commit 7caba63

Please sign in to comment.