Browse Source

Build and Deploy fixes.

tags/v1.4.5
Ivan Bravo Bravo 1 month ago
parent
commit
d97a7a42d8
2 changed files with 7 additions and 4 deletions
  1. 3
    0
      .github/workflows/ci.yml
  2. 4
    4
      src/scripts/deploy.js

+ 3
- 0
.github/workflows/ci.yml View File

@@ -22,6 +22,7 @@ jobs:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobsjob_idstrategy
strategy:
fail-fast: false
max-parallel: 1
matrix:
os:
- ubuntu-latest
@@ -69,12 +70,14 @@ jobs:
- name: Build (Portable)
working-directory: src/
env:
GITHUB_SHA: ${{ github.sha }}
BUILD_PORTABLE: true
run: yarn run build

- name: Deploy
working-directory: src/
continue-on-error: true
timeout-minutes: 20
env:
GITHUB_SHA: ${{ github.sha }}
GITHUB_REF: ${{ github.ref }}

+ 4
- 4
src/scripts/deploy.js View File

@@ -21,11 +21,11 @@ const VERSION = `v${pkg.version}`
const FILENAME = `DreamTime-${VERSION}-${process.env.BUILD_PLATFORM}`
const DISTPATH = path.resolve(__dirname, '../../dist')
const PROVIDERS = [
'Github',
'Teknik',
'DreamLinkCluster',
'Pinata',
'MEGA',
'Github',
'Teknik',
]

if (process.env.GITHUB_REF) {
@@ -47,7 +47,7 @@ async function run(release) {
console.log(`Uploading to ${provider.label}...`)
})

release.on('upload_success', (provider) => {
release.on('upload_success', (result, provider) => {
console.log(`✔️ Uploaded to ${provider.label}!`)
})

@@ -59,7 +59,7 @@ async function run(release) {
console.log(`Pinning to ${provider.label}...`)
})

release.on('pin_success', (provider) => {
release.on('pin_success', (cid, provider) => {
console.log(`✔️ Pinned to ${provider.label}!`)
})


Loading…
Cancel
Save