Skip to content

Commit

Permalink
remove publish workflow until pubdev issue is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Iapicca committed Apr 20, 2024
1 parent bdba874 commit 8102ce7
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/pub-lish.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
name: 'pub-lish'
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
branches:
- main
jobs:
pub-lish:
name: 'publish to pub.dev'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: 'checkout'
uses: actions/checkout@v4
- name: 'setup flutter'
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: 'setup credentials'
run: |
mkdir $HOME/.pub-cache/ && \
touch $HOME/.pub-cache/credentials.json && \
cat <<EOF > $HOME/.pub-cache/credentials.json
{
"accessToken":"${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }}",
"refreshToken":"${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }}",
"tokenEndpoint":"https://accounts.google.com/o/oauth2/token",
"scopes":["https://www.googleapis.com/auth/userinfo.email","openid"],
"expiration":${{ secrets.PUB_DEV_PUBLISH_EXPIRATION }}
}
EOF
- name: 'install melos'
uses: bluefireteam/melos-action@v1
- name: 'publishing'
run: |
yes | melos publish --no-dry-run --git-tag-version
# name: 'pub-lish'
# on:
# push:
# tags:
# - 'v[0-9]+.[0-9]+.[0-9]+*'
# branches:
# - main
# jobs:
# pub-lish:
# name: 'publish to pub.dev'
# runs-on: ubuntu-latest
# timeout-minutes: 10
# steps:
# - name: 'checkout'
# uses: actions/checkout@v4
# - name: 'setup flutter'
# uses: subosito/flutter-action@v2
# with:
# channel: 'stable'
# - name: 'setup credentials'
# run: |
# mkdir $HOME/.pub-cache/ && \
# touch $HOME/.pub-cache/credentials.json && \
# cat <<EOF > $HOME/.pub-cache/credentials.json
# {
# "accessToken":"${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }}",
# "refreshToken":"${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }}",
# "tokenEndpoint":"https://accounts.google.com/o/oauth2/token",
# "scopes":["https://www.googleapis.com/auth/userinfo.email","openid"],
# "expiration":${{ secrets.PUB_DEV_PUBLISH_EXPIRATION }}
# }
# EOF
# - name: 'install melos'
# uses: bluefireteam/melos-action@v1
# - name: 'publishing'
# run: |
# yes | melos publish --no-dry-run --git-tag-version

0 comments on commit 8102ce7

Please sign in to comment.