Skip to content

Commit

Permalink
Revert back to release from main because nothing works
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalocasas committed Sep 27, 2024
1 parent f7e096a commit 915f5ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 33 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- main
tags:
- 'v*'

name: Create Release

Expand All @@ -12,28 +12,9 @@ jobs:
matrix:
os: [ubuntu-latest]
python: ['3.9']
outputs:
ready_to_release: ${{ steps.check_version_tag.outputs.version_tag_exists }}

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Fetch all tags
run: git fetch --tags
- name: Check for tags
id: check_version_tag
run: |
TAGS=$(git tag --points-at HEAD)
if [[ "$TAGS" == *v* ]]; then
echo "Version tag found! Building new release: $TAGS"
echo "version_tag_exists=true" >> $GITHUB_OUTPUT
else
echo "No version tag found. Skipping workflow."
echo "version_tag_exists=false" >> $GITHUB_OUTPUT
fi
- uses: compas-dev/compas-actions.build@v3
if: steps.check_version_tag.outputs.version_tag_exists == 'true'
with:
python: ${{ matrix.python }}
invoke_lint: true
Expand All @@ -42,7 +23,6 @@ jobs:
publish:
needs: build
runs-on: windows-latest
if: needs.build.outputs.ready_to_release == 'true'
steps:
- uses: compas-dev/compas-actions.publish@v2
with:
Expand Down
13 changes: 2 additions & 11 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,7 @@ To create a new release, follow these steps:
1. Ensure all changes intended for the release are merged into the **main** branch.
2. Create a new branch from **main** to prepare the release (replace `x.y.z` with the version number you plan to release):
```bash
git checkout main
git pull
git checkout -b prepare-release-x.y.z
```
2. Ensure you have locally checked out the **main** branch.
3. Ensure all checks and tests pass successfully. Use the `invoke check` and `invoke test` commands to verify.
Expand All @@ -86,7 +80,4 @@ To create a new release, follow these steps:
```bash
invoke release [release_type]
```
6. Create a merge request to merge the branch into **main**. Check the changes and make sure
everything looks good, before merging.
7. Celebrate! 💃
6. Celebrate! 💃

0 comments on commit 915f5ad

Please sign in to comment.