Skip to content

Commit

Permalink
Merge pull request #34 from gjsjohnmurray/pink-viper
Browse files Browse the repository at this point in the history
Fix CI beta and publish steps
  • Loading branch information
gjsjohnmurray authored Nov 13, 2024
2 parents d3beee2 + a8fb3b6 commit d1493b0
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ jobs:
tmp=$(mktemp)
jq --arg version "$VERSION" '.version = $version' package.json > "$tmp" && mv "$tmp" package.json
mkdir dist
echo $VERSION > .version
echo $NAME > .name
echo $VERSION > meta.version
echo $NAME > meta.name
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
Expand All @@ -80,24 +80,24 @@ jobs:
if: runner.os == 'Linux'
run: |
npx vsce package -o ${{ steps.set-version.outputs.name }}.vsix
- uses: actions/upload-artifact@v4.4.2
- uses: actions/upload-artifact@v4
if: (runner.os == 'Linux') && (github.event_name != 'release')
with:
name: ${{ steps.set-version.outputs.name }}.vsix
path: ${{ steps.set-version.outputs.name }}.vsix
- uses: actions/upload-artifact@v4.4.2
- uses: actions/upload-artifact@v4
if: runner.os == 'Linux'
with:
name: meta
path: |
.name
.version
meta.name
meta.version
beta:
if: (github.event_name == 'push')
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v4.1.7
- uses: actions/download-artifact@v4
with:
name: meta
path: .
Expand All @@ -106,9 +106,9 @@ jobs:
if: runner.os == 'Linux'
run: |
set -x
echo "version=`cat .version`" >> $GITHUB_OUTPUT
echo "name=`cat .name`" >> $GITHUB_OUTPUT
- uses: actions/download-artifact@v4.1.7
echo "version=`cat meta.version`" >> $GITHUB_OUTPUT
echo "name=`cat meta.name`" >> $GITHUB_OUTPUT
- uses: actions/download-artifact@v4
with:
name: ${{ steps.set-version.outputs.name }}.vsix
- name: Create Release
Expand All @@ -129,20 +129,20 @@ jobs:
with:
ref: main
token: ${{ secrets.TOKEN }}
- uses: actions/download-artifact@v4.1.7
- uses: actions/download-artifact@v4
with:
name: meta
path: .
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- name: Prepare build
id: set-version
run: |
VERSION=`cat .version`
NEXT_VERSION=`cat .version | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.`
echo "name=`cat .name`" >> $GITHUB_OUTPUT
VERSION=`cat meta.version`
NEXT_VERSION=`cat meta.version | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.`
echo "name=`cat meta.name`" >> $GITHUB_OUTPUT
tmp=$(mktemp)
git config --global user.name 'ProjectBot'
git config --global user.email '[email protected]'
Expand Down

0 comments on commit d1493b0

Please sign in to comment.