Skip to content

Commit

Permalink
github token to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
toddtarsi committed Jan 28, 2024
1 parent cf2c8e9 commit 6dc4a7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 35 deletions.
35 changes: 3 additions & 32 deletions .github/workflows/release-ide-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,35 +48,6 @@ jobs:
env:
NODE_ENV: "production"
- name: Build selenium-ide binaries
run: npm run build:electron:${{ matrix.platform }}
working-directory: ./packages/selenium-ide
- name: Set env from current release
run: >
echo "SIDE_RELEASE_VERSION=$(node -pe "require('./package.json').version")" >> $GITHUB_ENV
if: matrix.platform != 'windows'
working-directory: ./packages/selenium-ide
- name: Set env from current release on Windows
run: |
$version = node -pe "require('./package.json').version"
echo "SIDE_RELEASE_VERSION=$version" | Out-File -Append -Encoding utf8 $Env:GITHUB_ENV
shell: pwsh
if: matrix.platform == 'windows'
working-directory: ./packages/selenium-ide
- name: Check env is there
run: echo "${{ env.SIDE_RELEASE_VERSION }}"
- name: Release latest selenium-ide on github
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest-${{ matrix.platform }}"
prerelease: true
title: "Nightly (Unstable)"
files: packages/selenium-ide/dist/Selenium*
- name: Release selenium-ide on github
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ env.SIDE_RELEASE_VERSION }}-${{ matrix.platform }}"
prerelease: false
files: packages/selenium-ide/dist/Selenium*
continue-on-error: true
run: npm run publish:electron:${{ matrix.platform }}
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
6 changes: 3 additions & 3 deletions packages/selenium-ide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"start": "electron build/main-bundle.js",
"build": "run-s build:webpack build:electron",
"build:electron": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -mwl --publish never",
"build:electron:linux": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -l --publish always",
"build:electron:mac": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -m --publish always",
"build:electron:windows": "electron-builder -w --publish always",
"build:electron:dir": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --dir",
"build:webpack": "webpack",
"install-app-deps": "electron-builder install-app-deps",
"publish:electron:linux": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -l --publish always",
"publish:electron:mac": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -m --publish always",
"publish:electron:windows": "electron-builder -w --publish always",
"release": "electron-builder",
"watch": "webpack --watch"
},
Expand Down

0 comments on commit 6dc4a7a

Please sign in to comment.