Skip to content

Commit

Permalink
Use gh actions for tag releases
Browse files Browse the repository at this point in the history
  • Loading branch information
noisekit committed Oct 11, 2023
1 parent 95c9988 commit c449f8c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 59 deletions.
66 changes: 7 additions & 59 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,28 +272,7 @@ jobs:
- run: echo "pipeline.project.git_url = << pipeline.project.git_url >>"

workflows:
debug:
when:
and:
- not:
or:
- equal: ['tagged-releases', << pipeline.git.branch >>]
- equal: ['release/lp', << pipeline.git.branch >>]
- equal: ['test-release/lp', << pipeline.git.branch >>]
jobs:
- debug

ui:
when:
and:
- not: << pipeline.git.tag >>
- << pipeline.git.branch >>
- not:
or:
- equal: ['tagged-releases', << pipeline.git.branch >>]
- equal: ['release/lp', << pipeline.git.branch >>]
- equal: ['test-release/lp', << pipeline.git.branch >>]

jobs:
- checks
- typecheck
Expand All @@ -305,50 +284,19 @@ workflows:
- staking-e2e:
chain: optimism-goerli
name: staking-e2e-optimism-goerli
- staking-ipfs:
requires: [checks, typecheck, tests, staking-cy, staking-e2e-optimism-mainnet]
filters:
branches:
only:
- release
- master
- ipfs-deploy
- combine-coverage:
requires: [tests, staking-cy, staking-e2e-optimism-mainnet]

release-lp:
when:
and:
- matches:
pattern: '^release-lp.*'
value: << pipeline.git.tag >>
# - not: << pipeline.git.branch >> # tags pushed have no branch
# - equal: ['tagged-releases', << pipeline.git.branch >>]
jobs:
- checks
- typecheck
- tests
- staking-cy
- staking-e2e:
chain: optimism-mainnet
name: staking-e2e-optimism-mainnet
- staking-e2e:
chain: optimism-goerli
name: staking-e2e-optimism-goerli
- release:
release-branch: 'release/lp'
- staking-ipfs:
requires:
- checks
- typecheck
- tests
- staking-cy
- staking-e2e-optimism-mainnet
- staking-e2e-optimism-goerli

test-release-lp:
when:
and:
- equal: ['tagged-releases', << pipeline.git.branch >>]
jobs:
- release:
release-branch: 'test-release/lp'
filters:
branches:
only:
- release
- master
- ipfs-deploy
20 changes: 20 additions & 0 deletions .github/workflows/release-lp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: release-lp

on:
pull_request: {}
push:
tags:
- 'release-lp*'
branches:
- 'tagged-releases'

jobs:
echo:
runs-on: ubuntu-latest
steps:
- name: Echo Hello
run: echo Hello

- name: Only if success
if: ${{ github.event.check_suite.conclusion == 'success' }}
run: echo BUILD WAS GREEN!

0 comments on commit c449f8c

Please sign in to comment.