Skip to content

fix: Fix fs.existsSync deprecation warning #46

fix: Fix fs.existsSync deprecation warning

fix: Fix fs.existsSync deprecation warning #46

Workflow file for this run

name: Create Releases

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 80, Col: 9): Job 'build-release-binary-tag' depends on unknown job 'sign'., (Line: 100, Col: 9): Job 'checksum' depends on job 'build-release-binary-tag' which creates a cycle in the dependency graph., (Line: 139, Col: 9): Job 'deploy-releases-artifacts' depends on job 'checksum' which creates a cycle in the dependency graph., (Line: 145, Col: 9): Job 'deploy-releases-releases' depends on job 'checksum' which creates a cycle in the dependency graph.
on:
release:
types:
- created
jobs:
package:
uses: ./.github/workflows/pkg-binary.yml
strategy:
fail-fast: false
matrix:
arch:
- x64
- arm64
os:
- linux
- macos
- win
with:
arch: ${{ matrix.arch }}
edge: ${{ github.event.release.prerelease }}
filename: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ github.ref_name }}
os: ${{ matrix.os }}
version: ${{ github.event.release.tag_name }}
# sign:
# uses: ./.github/workflows/sign-binary.yml
# needs:
# - package
# strategy:
# fail-fast: false
# matrix:
# file:
# - lando-linux-arm64-${{ github.ref_name }}
# - lando-macos-arm64-${{ github.ref_name }}
# - lando-win-arm64-${{ github.ref_name }}
# - lando-linux-x64-${{ github.ref_name }}
# - lando-macos-x64-${{ github.ref_name }}
# - lando-win-x64-${{ github.ref_name }}
# with:
# download-pattern: packaged-lando-*
# file: ${{ matrix.file }}
# secrets:
# apple-notary-user: ${{ secrets.APPLE_NOTARY_USER }}
# apple-notary-password: ${{ secrets.APPLE_NOTARY_PASSWORD }}
# certificate-data: ${{ contains(matrix.file, 'macos') && secrets.APPLE_CERT_DATA || secrets.KEYLOCKER_CLIENT_CERT }}
# certificate-password: ${{ contains(matrix.file, 'macos') && secrets.APPLE_CERT_PASSWORD || secrets.KEYLOCKER_CLIENT_CERT_PASSWORD }}
# keylocker-api-key: ${{ secrets.KEYLOCKER_API_KEY }}
# keylocker-cert-sha1-hash: ${{ secrets.KEYLOCKER_CERT_SHA1_HASH }}
# keylocker-keypair-alias: ${{ secrets.KEYLOCKER_KEYPAIR_ALIAS }}
build-release-binary-alias:
uses: ./.github/workflows/release-rename-binary.yml
needs:
- package
strategy:
fail-fast: false
matrix:
arch:
- x64
- arm64
os:
- linux
- macos
- win
alias: ${{ github.event.release.prerelease == true && fromJson('["edge"]') || fromJson('["stable", "edge"]') }}
with:
source: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ github.ref_name }}
destination: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.alias }}
download-pattern: packaged-lando-*
build-release-binary-tag:
uses: ./.github/workflows/release-rename-binary.yml
needs:
- sign
strategy:
fail-fast: false
matrix:
arch:
- x64
- arm64
os:
- linux
- macos
- win
with:
source: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ github.ref_name }}
destination: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ github.ref_name }}
download-pattern: packaged-lando-*
checksum:
uses: ./.github/workflows/generate-checksums.yml
needs:
- build-release-binary-alias
- build-release-binary-tag
with:
download-pattern: release-*-${{ github.ref_name }}*
flatten: true
show: true
upload-name: release-checksums-${{ github.ref_name }}
# checksum-s3-aliases:
# uses: ./.github/workflows/generate-checksums.yml
# strategy:
# fail-fast: false
# matrix:
# alias:
# - edge
# - ${{ github.event.release.prerelease == false && 'stable' || 'prerelease' }}
# - ${{ github.ref_name }}
# needs:
# - build-release-binary-alias
# - build-release-binary-tag
# with:
# download-pattern: release-*-${{ github.ref_name }}*
# output: sha256sum-${{ matrix.alias }}.txt
# flatten: true
# show: true
# upload-name: release-checksums${{ matrix.alias }}
# deploy-releases-s3:
# uses: ./.github/workflows/deploy-s3.yml
# needs:
# - checksum
# - checksum-s3-aliases
# with:
# download-pattern: release-*
# secrets:
# aws-secret-access-key: ${{ secrets.S3_SECRET_ACCESS_KEY }}
# aws-access-key-id: ${{ secrets.S3_ACCESS_KEY_ID }}
# aws-region: us-east-1
deploy-releases-artifacts:
uses: ./.github/workflows/deploy-artifacts.yml
needs:
- checksum
with:
download-pattern: release-*
deploy-releases-releases:
uses: ./.github/workflows/deploy-releases.yml
needs:
- checksum
with:
download-pattern: release-*-${{ github.ref_name }}*
deploy-npm:
uses: ./.github/workflows/deploy-npm.yml
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
npm-token: ${{ secrets.NPM_DEPLOY_TOKEN }}
# deploy-legacy-notifications:
# runs-on: ubuntu-24.04
# needs:
# - checksum
# env:
# TERM: xterm
# steps:
# - name: Push release to lando/lando
# uses: softprops/action-gh-release@v2
# with:
# repository: lando/lando
# name: ${{ github.event.release.tag_name }}
# draft: ${{ github.event.release.draft }}
# prerelease: ${{ github.event.release.prerelease }}
# tag_name: ${{ github.event.release.tag_name }}
# token: ${{ secrets.RTFM47_COAXIUM_INJECTOR }}
# body: |
# **Starting with v3.21.0-beta.18, Lando is no longer distributed via package installers in here in this releases page!*#*
# To install Lando please visit the [official install docs](https://docs.lando.dev/install)#.
# ## Changelogs
# Lando now runs as a distributed plugin-based ecosystem so you will want to check the releases/changelogs in
# the various [plugins](https://docs.lando.dev/plugins.html) for relevant notes#.
# [Click Here](https://github.com/lando/core/releases/tag/${{ github.event.release.tag_name }}) to check out the notes for `@lando/core@${{ github.event.release.tag_name }}`#.
# ## Note#s
# * We will continue to push releases here for backwards compatibility, posterity, etc
# * [Extended release notes](https://lando.dev/blog/2024/01/16/v321-extended.html#)
# - name: Push release to lando/cli
# uses: softprops/action-gh-release@v2
# with:
# repository: lando/legacy-cli
# name: ${{ github.event.release.tag_name }}
# draft: ${{ github.event.release.draft }}
# prerelease: ${{ github.event.release.prerelease }}
# tag_name: ${{ github.event.release.tag_name }}
# token: ${{ secrets.RTFM47_COAXIUM_INJECTOR }}
# body: |
# **Starting with v3.23.0, Lando CLI binaries are no longer distributed here in these releases!*#*
# They are now available in the `@lando/core` [releases page](https://github.com/lando/core/releases) including [this ${{ github.event.release.tag_name }} release](https://github.com/lando/core/releases/tag/${{ github.event.release.tag_name }})#.
# All that said we don't recommned you use these binaries directly. Instead, to install Lando please visit the [official install docs](https://docs.lando.dev/install).