Skip to content

Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows #20

Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows #20

name: Pub Publish Test
on:
push:
branches:
master
pull_request:
branches:
master
jobs:
build:
name: Publishing Test (Dry Run)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '2.0.5'
channel: 'stable'
- name: Setup credentials
run: |
mkdir -p ~/.pub-cache
cat <<EOF > ~/.pub-cache/credentials.json
{
"accessToken":"${{ secrets.PUB_ACCESS_TOKEN }}",
"refreshToken":"${{ secrets.PUB_REFRESH_TOKEN }}",
"idToken":"${{ secrets.PUB_ID_TOKEN }}",
"tokenEndpoint":"https://accounts.google.com/o/oauth2/token",
"scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ],
"expiration": 1627651143489
}
EOF
- name: Documenting package
run: |
echo "FLUTTER_ROOT=$FLUTTER_HOME" >> $GITHUB_ENV
make
make deps
pub global activate dartdoc
make docs
- name: Pana analyzer
run: |
pub global activate pana
pana -s path . --no-warning
- name: Publish dry run
run: |
pub publish -n