diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml deleted file mode 100644 index 2d82e6fd..00000000 --- a/.github/workflows/create_release.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Create Release -on: - workflow_dispatch: - inputs: - versionName: - description: "Semantic Version Number (i.e., 5.5.0 or patch, minor, major, prepatch, preminor, premajor, prerelease)" - required: true - default: patch -jobs: - create_release: - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v2 - with: - ref: main - ssh-key: ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_SSH }} - - name: Reset main branch - run: | - git fetch origin dev:dev - git reset --hard dev - - name: Set up Python 3.8 - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: Change version number - id: version - run: | - python -m pip install bump2version - echo -n "::set-output name=next_tag::" - bump2version --list ${{ github.event.inputs.versionName }} | grep new_version | sed -r s,"^.*=",, - - name: Create pull request into main - uses: peter-evans/create-pull-request@v3 - with: - branch: release/${{ steps.version.outputs.next_tag }} - commit-message: "chore: release ${{ steps.version.outputs.next_tag }}" - base: main - title: Release ${{ steps.version.outputs.next_tag }} - labels: chore - reviewers: krivard - assignees: krivard - body: | - Releasing ${{ steps.version.outputs.next_tag }}. diff --git a/.github/workflows/release_helper.yml b/.github/workflows/release_helper.yml deleted file mode 100644 index 90e288ec..00000000 --- a/.github/workflows/release_helper.yml +++ /dev/null @@ -1,76 +0,0 @@ -name: Release Helper -on: - push: - branches: - - main - -jobs: - correct_repository: - runs-on: ubuntu-latest - steps: - - name: fail on fork - if: github.repository_owner != 'cmu-delphi' - run: exit 1 - - create_release: - needs: correct_repository - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: Extract version - id: extract_version - run: | - python -m pip install bump2version - echo -n "::set-output name=version::" - bump2version --dry-run --list patch | grep ^current_version | sed -r s,"^.*=",, - - name: Create Release - id: create_release - uses: release-drafter/release-drafter@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - version: ${{ steps.extract_version.outputs.version }} - publish: true - outputs: - version: ${{ steps.extract_version.outputs.version }} - upload_url: ${{ steps.create_release.outputs.upload_url }} - tag_name: ${{ steps.create_release.outputs.tag_name }} - - release_package: - needs: create_release - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v2 - # TODO - - sync_dev: - needs: correct_repository - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v2 - with: - ref: dev - ssh-key: ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_SSH }} - - name: Reset dev branch - run: | - git fetch origin main:main - git reset --hard main - - name: Create pull request into dev - uses: peter-evans/create-pull-request@v3 - with: - branch: bot/sync-main-dev - commit-message: "chore: sync main-dev" - base: dev - title: "chore: sync main->dev" - labels: chore - reviewers: dshemetov - assignees: dshemetov - body: | - Syncing Main->Dev.