Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/v1.2.2 #61

Merged
merged 21 commits into from
Nov 9, 2023
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e9d377b
added lint rules
aditya-likeminds Oct 8, 2023
06f4187
added pull-request workflow
aditya-likeminds Oct 8, 2023
540f4c5
added release workflow
aditya-likeminds Oct 8, 2023
05fbe02
fix: git tag and release
aditya-likeminds Oct 11, 2023
5d93cc4
fix(workflows): write permissions
aditya-likeminds Oct 25, 2023
938b877
fix: post sharing logic
ansh-les Nov 7, 2023
c1e0379
added theme data
TyagiLikeMinds Nov 7, 2023
a34785b
fixed member state issue
TyagiLikeMinds Nov 7, 2023
cd07505
fixed comment controller issue
TyagiLikeMinds Nov 7, 2023
2581f3e
added image url in lm feed
TyagiLikeMinds Nov 7, 2023
edf695e
fix(InitiateUser): added future for initiate user
TyagiLikeMinds Nov 8, 2023
1d912a4
revert(MaterialApp): revert material app
TyagiLikeMinds Nov 8, 2023
1c060d7
fix(LocalPref): added defensive check for member rights
TyagiLikeMinds Nov 8, 2023
afe1c27
Integrating video flow
divyanshgandhilm Nov 9, 2023
fe0bf40
Merge remote-tracking branch 'origin/bugfix/LM-10132_local_pref' into…
divyanshgandhilm Nov 9, 2023
275c67d
fixed upload flow
TyagiLikeMinds Nov 9, 2023
4af2753
Merge pull request #60 from LikeMindsCommunity/feature/LM-10127-Video…
divyanshgandhilm Nov 9, 2023
266b183
Merge pull request #58 from les-transformations/fix/sharing-logic
divyanshgandhilm Nov 9, 2023
3b75915
Merge pull request #45 from LikeMindsCommunity/feature/LM-9809
divyanshgandhilm Nov 9, 2023
aa83d8a
Version update v1.2.2
divyanshgandhilm Nov 9, 2023
eb6ac51
Merge pull request #62 from LikeMindsCommunity/version/v1.2.2
divyanshgandhilm Nov 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: git tag and release
  • Loading branch information
aditya-likeminds committed Oct 11, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 05fbe02d33d238337e73344cf1ca8e3fb46e1de8
55 changes: 50 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,65 @@
name: Create Release
name: Create Tag and Release on Version Change

on:
push:
tags:
- 'v*'
branches:
- master

jobs:
create_tag:
name: Create Git Tag
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Check for version changes
run: |
# Fetch all tags from the remote repository
git fetch --tags

# Get the previous version from the last release tag
export previous_version=$(git describe --tags --abbrev=0)

# Get the current version from pubspec.yaml
export current_version=$(cat pubspec.yaml | grep 'version:' | awk '{print $2}')

if [[ "$previous_version" != "v$current_version" ]]; then
echo "Version has changed from $previous_version to v$current_version."
else
echo "Version has not changed."
exit 1
fi

- name: Push Git Tag
run: |
# Git login
git config --global user.name "$(git log -n 1 --pretty=format:%an)"
git config --global user.email "$(git log -n 1 --pretty=format:%ae)"

# Push a Git tag with the new version
export current_version=$(cat pubspec.yaml | grep 'version:' | awk '{print $2}')
git tag -a "v$current_version" -m "Version $current_version"
git push origin "v$current_version"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

create-github-release:
name: Create GitHub Release
runs-on: ubuntu-latest
needs: create_tag
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Create Release
run: gh release create ${{ github.ref }} --generate-notes
run: gh release create "$(git describe --tags --abbrev=0)" --generate-notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}