From dfae32e44c4443a6754997641e73f5b58d3c3a1d Mon Sep 17 00:00:00 2001 From: Kevin Rodrigues Borges <115191440+K3vinb5@users.noreply.github.com> Date: Sun, 26 Jan 2025 16:08:05 +0000 Subject: [PATCH] (fix) Fix in the new pipeline --- .github/workflows/deploy_commit.yml | 19 +++++++++++++ .github/workflows/main1.yml.old | 41 ----------------------------- 2 files changed, 19 insertions(+), 41 deletions(-) delete mode 100644 .github/workflows/main1.yml.old diff --git a/.github/workflows/deploy_commit.yml b/.github/workflows/deploy_commit.yml index e5f6c04..0af4eb6 100644 --- a/.github/workflows/deploy_commit.yml +++ b/.github/workflows/deploy_commit.yml @@ -12,6 +12,25 @@ on: required: true jobs: + create-tag: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Create Git Tag + id: create_tag + uses: actions/github-script@v6 + with: + script: | + const tagName = `v${{ github.event.inputs.version }}`; + const { data: tag } = await github.git.createRef({ + owner: context.repo.owner, + repo: context.repo.repo, + ref: `refs/tags/${tagName}`, + sha: context.sha, + }); + return tag; + build-and-release-linux: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/main1.yml.old b/.github/workflows/main1.yml.old deleted file mode 100644 index 6efd025..0000000 --- a/.github/workflows/main1.yml.old +++ /dev/null @@ -1,41 +0,0 @@ -name: Flutter CI Test - -on: push - - -jobs: - windows: - runs-on: windows-latest - steps: - - name: Clone repository - uses: actions/checkout@v4 - - name: Set up Flutter - uses: subosito/flutter-action@v2 - with: - channel: stable - - run: flutter build windows - - linux: - runs-on: ubuntu-latest - steps: - - name: Clone repository - uses: actions/checkout@v4 - - name: Set up Flutter - uses: subosito/flutter-action@v2 - with: - channel: stable - - run: | - sudo apt-get update -y - sudo apt-get install -y ninja-build libgtk-3-dev libmdk - - run: flutter build linux - - macos: - runs-on: macos-latest - steps: - - name: Clone repository - uses: actions/checkout@v4 - - name: Set up Flutter - uses: subosito/flutter-action@v2 - with: - channel: stable - - run: flutter build macos \ No newline at end of file