Skip to content

Commit d3026bc

Browse files
fix: add automatic deploy of website
1 parent 700dfce commit d3026bc

File tree

9 files changed

+729
-1
lines changed

9 files changed

+729
-1
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,29 @@ jobs:
6464
- run: yarn release
6565
env:
6666
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67+
deploy-example:
68+
runs-on: ubuntu-latest
69+
if: github.ref == 'refs/heads/master'
70+
steps:
71+
- name: Checkout
72+
uses: actions/checkout@v3
73+
with:
74+
fetch-depth: 0
75+
- name: Setup
76+
uses: ./.github/actions/setup
77+
- name: Deploy example
78+
uses: jakejarvis/s3-sync-action@master
79+
with:
80+
args: --acl public-read --follow-symlinks --delete
81+
env:
82+
AWS_S3_BUCKET: www.reactnativepaperdates.com
83+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
84+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
85+
AWS_REGION: 'eu-central-1'
86+
# SOURCE_DIR: 'public' # optional: defaults to entire repository
87+
88+
89+
90+
91+
92+

example/dist/android-index.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name":"react-native-paper-dates-example","slug":"react-native-paper-dates-example","description":"Example app for react-native-paper-dates","privacy":"public","version":"1.0.0","platforms":["ios","android","web"],"jsEngine":"hermes","ios":{"supportsTablet":true,"jsEngine":"jsc"},"sdkVersion":"47.0.0","currentFullName":"@omoda/react-native-paper-dates-example","originalFullName":"@omoda/react-native-paper-dates-example","locales":{},"bundledAssets":["asset_b62641afc9ab487008e996a5c5865e56.ttf","asset_2379ae894c2c9f63b852a9f3676c2763.png","asset_9ec80f144724ecc8425fc45e4da7bc9e.png"],"assetUrlOverride":"./assets","publishedTime":"2022-12-24T18:30:06.096Z","commitTime":"2022-12-24T18:30:06.096Z","releaseId":"d5ad3510-1d30-4eb3-b615-910e3b295e38","revisionId":"3ZydkLdwok","id":"@omoda/react-native-paper-dates-example","platform":"android","bundleUrl":"https://reactnativepaperdates.com/bundles/android-1ca6e19779e179e4e7a01104cf6d14d8.js","dependencies":["add","expo","expo-splash-screen","react","react-dom","react-native","react-native-paper","react-native-web"]}
489 Bytes
Binary file not shown.
42.3 KB
Binary file not shown.
1.09 MB
Binary file not shown.
1.36 MB
Binary file not shown.

example/dist/bundles/ios-4e1f925358d35d52b7f0d09e647856f0.js

Lines changed: 699 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/dist/ios-index.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name":"react-native-paper-dates-example","slug":"react-native-paper-dates-example","description":"Example app for react-native-paper-dates","privacy":"public","version":"1.0.0","platforms":["ios","android","web"],"jsEngine":"hermes","ios":{"supportsTablet":true,"jsEngine":"jsc"},"sdkVersion":"47.0.0","currentFullName":"@omoda/react-native-paper-dates-example","originalFullName":"@omoda/react-native-paper-dates-example","locales":{},"bundledAssets":["asset_b62641afc9ab487008e996a5c5865e56.ttf","asset_2379ae894c2c9f63b852a9f3676c2763.png","asset_9ec80f144724ecc8425fc45e4da7bc9e.png"],"assetUrlOverride":"./assets","publishedTime":"2022-12-24T18:30:06.096Z","commitTime":"2022-12-24T18:30:06.096Z","releaseId":"d5ad3510-1d30-4eb3-b615-910e3b295e38","revisionId":"3ZydkLdwok","id":"@omoda/react-native-paper-dates-example","platform":"ios","bundleUrl":"https://reactnativepaperdates.com/bundles/ios-4e1f925358d35d52b7f0d09e647856f0.js","dependencies":["add","expo","expo-splash-screen","react","react-dom","react-native","react-native-paper","react-native-web"]}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"example": "yarn --cwd example",
3232
"pods": "cd example && pod-install --quiet",
3333
"bootstrap": "yarn example && yarn && yarn pods",
34-
"prepack": "bob build"
34+
"prepack": "bob build",
35+
"build-example": "cd example && expo export --public-url=https://reactnativepaperdates.com/"
3536
},
3637
"keywords": [
3738
"react-native",

0 commit comments

Comments
 (0)