reflex-google-auth 0.0.9a4__tar.gz → 0.0.9a8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/.github/workflows/publish.yml +20 -4
  2. {reflex_google_auth-0.0.9a4/custom_components/reflex_google_auth.egg-info → reflex_google_auth-0.0.9a8}/PKG-INFO +1 -1
  3. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8/custom_components/reflex_google_auth.egg-info}/PKG-INFO +1 -1
  4. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/.gitignore +0 -0
  5. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/README.md +0 -0
  6. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/custom_components/reflex_google_auth/__init__.py +0 -0
  7. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/custom_components/reflex_google_auth/decorator.py +0 -0
  8. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/custom_components/reflex_google_auth/google_auth.py +0 -0
  9. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/custom_components/reflex_google_auth/state.py +0 -0
  10. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/custom_components/reflex_google_auth.egg-info/SOURCES.txt +0 -0
  11. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/custom_components/reflex_google_auth.egg-info/dependency_links.txt +0 -0
  12. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/custom_components/reflex_google_auth.egg-info/requires.txt +0 -0
  13. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/custom_components/reflex_google_auth.egg-info/top_level.txt +0 -0
  14. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/google_auth_demo/.gitignore +0 -0
  15. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/google_auth_demo/assets/favicon.ico +0 -0
  16. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/google_auth_demo/google_auth_demo/__init__.py +0 -0
  17. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/google_auth_demo/google_auth_demo/google_auth_demo.py +0 -0
  18. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/google_auth_demo/requirements.txt +0 -0
  19. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/google_auth_demo/rxconfig.py +0 -0
  20. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/pyproject.toml +0 -0
  21. {reflex_google_auth-0.0.9a4 → reflex_google_auth-0.0.9a8}/setup.cfg +0 -0
@@ -1,13 +1,18 @@
1
- name: Publish Component to PyPI
1
+ name: Publish Component and Deploy Demo App
2
2
 
3
3
  on:
4
4
  release:
5
5
  types: [published]
6
+
7
+ env:
8
+ EXTRA_ARGS: "--hostname ${{ vars.HOSTNAME }} --env GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }} --env GOOGLE_CLIENT_SECRET=${{ secrets.GOOGLE_CLIENT_SECRET }} --env GOOGLE_REDIRECT_URI=${{ secrets.GOOGLE_REDIRECT_URI }}"
6
9
 
7
10
  jobs:
8
11
  publish:
9
12
  name: Publish Component to PyPI
10
13
  runs-on: ubuntu-latest
14
+ env:
15
+ HAS_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN != '' }}
11
16
  steps:
12
17
  - uses: actions/checkout@master
13
18
  - name: Set up Python 3.12
@@ -19,11 +24,14 @@ jobs:
19
24
  - name: Install latest reflex
20
25
  run: pip install 'git+https://github.com/reflex-dev/reflex@masenf/custom-component-publish-dynamic-version'
21
26
  - name: Publish to PyPI
27
+ if: ${{ env.HAS_PYPI_TOKEN == 'true' }}
22
28
  run: reflex component publish -t ${{ secrets.PYPI_TOKEN }} --no-share --no-validate-project-info
23
29
  deploy:
24
30
  name: Deploy Demo App to Reflex Cloud
25
31
  runs-on: ubuntu-latest
26
32
  needs: publish
33
+ env:
34
+ HAS_REFLEX_AUTH_TOKEN: ${{ secrets.REFLEX_AUTH_TOKEN != '' }}
27
35
  steps:
28
36
  - uses: actions/checkout@master
29
37
  - name: Set up Python 3.12
@@ -31,13 +39,21 @@ jobs:
31
39
  with:
32
40
  python-version: "3.12"
33
41
  - name: Set tagged version for deploy
34
- run: sed -E "s/^reflex-google-auth([ >=].*)?$/reflex-google-auth==${{ github.event.release.tag_name }}/" -i google_auth_demo/requirements.txt
42
+ run: sed -E 's/^${{ vars.COMPONENT_NAME }}([ >=].*)?$/${{ vars.COMPONENT_NAME }}==${{ github.event.release.tag_name }}/' -i ${{ vars.APP_DIRECTORY }}/requirements.txt
43
+ - name: Allow pre-release version of reflex
44
+ run: sed -E 's/(reflex[ >=].*)/\1 --pre/' -i ${{ vars.APP_DIRECTORY }}/requirements.txt
45
+ - name: Wait for package to become available
46
+ uses: databutton/wait-for-pypi@main
47
+ with:
48
+ package_name: ${{ vars.COMPONENT_NAME}}
49
+ package_version: ${{ github.event.release.tag_name }}
35
50
  - name: Deploy to ReflexCloud
36
51
  uses: reflex-dev/reflex-deploy-action@v2
52
+ if: ${{ env.HAS_REFLEX_AUTH_TOKEN == 'true' }}
37
53
  with:
38
54
  auth_token: ${{ secrets.REFLEX_AUTH_TOKEN }}
39
55
  project_id: ${{ secrets.REFLEX_PROJECT_ID }}
40
- app_directory: google_auth_demo
41
- extra_args: "--hostname google-auth-demo --env GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }} --env GOOGLE_CLIENT_SECRET=${{ secrets.GOOGLE_CLIENT_SECRET }} --env GOOGLE_REDIRECT_URI=${{ secrets.GOOGLE_REDIRECT_URI }}"
56
+ app_directory: ${{ vars.APP_DIRECTORY }}
57
+ extra_args: ${{ env.EXTRA_ARGS }}
42
58
  dry_run: ${{ vars.DRY_RUN }}
43
59
  skip_checkout: "true"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: reflex-google-auth
3
- Version: 0.0.9a4
3
+ Version: 0.0.9a8
4
4
  Summary: Sign in with Google
5
5
  Author-email: Masen Furer <m_github@0x26.net>
6
6
  License: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: reflex-google-auth
3
- Version: 0.0.9a4
3
+ Version: 0.0.9a8
4
4
  Summary: Sign in with Google
5
5
  Author-email: Masen Furer <m_github@0x26.net>
6
6
  License: Apache-2.0