diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml deleted file mode 100644 index 51c44997..00000000 --- a/.github/workflows/linux.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Linux - -on: - push: - tags: - - "v*.*.*" - paths-ignore: - - 'README.md' - - 'docs/**' - pull_request: - branches: - - master - paths-ignore: - - 'catalog/**' - - 'docs/**' - - 'README.md' - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Install Snapcraft - uses: samuelmeuli/action-snapcraft@v1 - with: - snapcraft_token: ${{ secrets.SNAP_TOKEN }} - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: 14.x - - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: ~/.npm - key: npm-${{ hashFiles('package-lock.json') }} - restore-keys: npm- - - - name: Install dependencies - run: npm ci - - - name: Get tag name - run: echo ::set-env name=CI_BUILD_TAG::${GITHUB_REF/refs\/tags\//} - if: startsWith(github.ref, 'refs/tags/') - - run: npm run dist - env: - CI: true - CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml deleted file mode 100644 index 8bca3b90..00000000 --- a/.github/workflows/macos.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: macOS - -on: - push: - tags: - - "v*.*.*" - paths-ignore: - - 'README.md' - - 'docs/**' - pull_request: - branches: - - master - paths-ignore: - - 'catalog/**' - - 'docs/**' - - 'README.md' - -jobs: - build: - runs-on: macos-latest - - steps: - - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: 14.x - - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: ~/.npm - key: npm-${{ hashFiles('package-lock.json') }} - restore-keys: npm- - - - name: Install dependencies - run: npm ci - - - name: Get tag name - run: echo ::set-env name=CI_BUILD_TAG::${GITHUB_REF/refs\/tags\//} - if: startsWith(github.ref, 'refs/tags/') - - run: npm run dist-dev - env: - CI: true - CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }} - APPLE_ID: ${{ secrets.APPLE_ID }} - APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} - # CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} - # CSC_LINK: ${{ secrets.CSC_LINK }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..84100d62 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,139 @@ +name: Release App + +on: + push: + tags: + - "v*.*.*" + paths-ignore: + - 'README.md' + - 'docs/**' + - '.vscode' + pull_request: + branches: + - master + paths-ignore: + - 'docs/**' + - 'README.md' + - '.vscode' + +concurrency: + group: release-ci-group + cancel-in-progress: true + +jobs: + Linux: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install Snapcraft + uses: samuelmeuli/action-snapcraft@v1 + with: + snapcraft_token: ${{ secrets.SNAP_TOKEN }} + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: 14.x + + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/.npm + key: npm-${{ hashFiles('package-lock.json') }} + restore-keys: npm- + + - name: Install dependencies + run: npm ci + + - name: Build App + run: npm run dist + env: + CI: true + CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Create Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + draft: true + files: out/make/**/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + MacOS: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: 14.x + + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/.npm + key: npm-${{ hashFiles('package-lock.json') }} + restore-keys: npm- + + - name: Install dependencies + run: npm ci + + - name: Build App + run: npm run dist-dev + env: + CI: true + CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }} + APPLE_ID: ${{ secrets.APPLE_ID }} + APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Create Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + draft: true + files: out/make/**/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + Windows: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: 14.x + + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/.npm + key: npm-${{ hashFiles('package-lock.json') }} + restore-keys: npm- + + - name: Install dependencies + run: npm ci + + - name: Build App + run: npm run dist + env: + CI: true + CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Create Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + draft: true + files: out/make/**/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml deleted file mode 100644 index d54540df..00000000 --- a/.github/workflows/windows.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Windows - -on: - push: - tags: - - "v*.*.*" - paths-ignore: - - 'README.md' - - 'docs/**' - pull_request: - branches: - - master - paths-ignore: - - 'catalog/**' - - 'docs/**' - - 'README.md' - -jobs: - build: - runs-on: windows-latest - - steps: - - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: 14.x - - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: ~/.npm - key: npm-${{ hashFiles('package-lock.json') }} - restore-keys: npm- - - - name: Install dependencies - run: npm ci - - - name: Get tag name - run: echo ::set-env name=CI_BUILD_TAG::${GITHUB_REF/refs\/tags\//} - if: startsWith(github.ref, 'refs/tags/') - - run: npm run dist - env: - CI: true - CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file