Skip to content

Commit

Permalink
Update sync-build-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleroy committed Aug 10, 2023
1 parent d0da26c commit d43913c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/sync-build-release-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:

vscode-js-debug:
uses: ./.github/workflows/sync-build-release.yml

with:
upstream: microsoft/vscode-js-debug
repository: vscode-js-debug
tag_prefix: v1

build: |
npm install --legacy-peer-deps
node_modules/.bin/gulp vsDebugServerBundle
node_modules/.bin/gulp vsDebugServerBundle
mv dist extension
zip -r extension.vsix extension
Expand All @@ -37,7 +37,7 @@ jobs:
./node_modules/.bin/gulp installPythonLibs
npm run package
mv ms-python-insiders.vsix extension.vsix
secrets:
token: ${{ secrets.PUSH_TOKEN }}

Expand All @@ -53,7 +53,7 @@ jobs:
npm install --legacy-peer-deps
npm run build
npm run package -- -o extension.vsix
secrets:
token: ${{ secrets.PUSH_TOKEN }}

Expand All @@ -68,10 +68,11 @@ jobs:
build: |
sudo apt-get install erlang-dev
sudo apt-get install elixir
mix local.hex --force
npm install
mix deps.get
MIX_ENV=prod mix compile
npx vsce package -o extension.vsix
secrets:
token: ${{ secrets.PUSH_TOKEN }}

Expand All @@ -86,6 +87,6 @@ jobs:
build: |
npm install
npx vsce package -o extension.vsix
secrets:
token: ${{ secrets.PUSH_TOKEN }}
19 changes: 9 additions & 10 deletions .github/workflows/sync-build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
description: 'bash script for building extension into extension.vsix'
required: true
type: string

secrets:
token:
description: 'The github token for syncing tags/releasing etc'
Expand All @@ -33,13 +33,13 @@ jobs:
steps:

# sync tags with forked repo
-
-
uses: actions/checkout@v3
with:
repository: daveleroy/${{ inputs.repository }}
token: ${{ secrets.token }}

-
-
shell: bash
run: |
git config user.name github-actions
Expand All @@ -60,22 +60,22 @@ jobs:
-
id: releases
continue-on-error: true

uses: oprypin/[email protected]
with:
repository: daveleroy/${{ inputs.repository }}
prefix: ${{ inputs.tag_prefix }}
releases-only: true


# Checkout the repo at the correct tag
-
-
if: ${{ steps.tags.outputs.tag != steps.releases.outputs.tag }}
uses: actions/checkout@v2
with:
repository: daveleroy/${{ inputs.repository }}
ref: ${{ steps.tags.outputs.tag }}
submodules: true
submodules: recursive


# Build
Expand Down Expand Up @@ -104,10 +104,10 @@ jobs:


# Upload Asset To Release
-
-
if: ${{ steps.tags.outputs.tag != steps.releases.outputs.tag }}

id: upload-release-asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.token }}
Expand All @@ -116,4 +116,3 @@ jobs:
asset_path: ./extension.vsix
asset_name: ${{ inputs.repository }}.vsix
asset_content_type: application/zip

0 comments on commit d43913c

Please sign in to comment.