-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7ad4036
Showing
46 changed files
with
188,717 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Check Version | ||
|
||
on: | ||
schedule: | ||
# Schedule every 12 hours | ||
- cron: '0 */12 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get current version | ||
run: | | ||
echo "currentVersion=$(grep -m1 'version:' pubspec.yaml | awk '{print $2}')" >> $GITHUB_ENV | ||
- name: print current version | ||
run: | | ||
echo "Current Version: ${{ env.currentVersion }}" | ||
- name: Clone codelessly_starter_brick | ||
run: | | ||
rm -rf codelessly_starter_brick | ||
git clone https://github.com/Codelessly/codelessly_starter_brick.git --single-branch | ||
- name: Get Latest Version | ||
run: | | ||
echo "starterVersion=$(grep -m1 'version:' codelessly_starter_brick/__brick__/pubspec.yaml | awk '{print $2}')" >> $GITHUB_ENV | ||
- name: print version | ||
run: | | ||
echo "Starter Version: ${{ env.starterVersion }}" | ||
- name: Compare versions | ||
run: | | ||
if [ "${{ env.currentVersion }}" != "${{ env.starterVersion }}" ]; then | ||
echo "Versions are different" | ||
echo "update=true" >> $GITHUB_ENV | ||
else | ||
echo "Versions are the same" | ||
echo "update=false" >> $GITHUB_ENV | ||
fi | ||
- name: print update | ||
run: | | ||
echo "Should Update: ${{ env.update }}" | ||
- name: Trigger Update | ||
if: ${{ env.update == 'true' }} | ||
uses: ${{ github.repository }}/.github/workflows/update_repo.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Build & Publish to Github Pages | ||
|
||
on: | ||
# push: | ||
# branches: | ||
# - main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
- run: flutter --version | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Build | ||
run: flutter build web --release | ||
- name: Extract repository name | ||
run: echo "repoName=$(echo ${{ github.repository }} | cut -d'/' -f2)" >> $GITHUB_ENV | ||
- name: set Base href | ||
run: sed -i "s|<base href=\".*\">|<base href=\"/${{ env.repoName }}/\">|g" build/web/index.html | ||
- name: Install ZIP tool | ||
run: sudo apt-get install zip | ||
- name: Archive | ||
run: | | ||
cd build | ||
mkdir artifact | ||
zip -r artifact/website.zip web | ||
cd .. | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: build/artifact/website.zip | ||
- name: Deploy to Github Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./build/web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Publish to Github Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Extract repository name | ||
run: echo "repoName=$(echo ${{ github.repository }} | cut -d'/' -f2)" >> $GITHUB_ENV | ||
- name: set Base href | ||
run: sed -i "s|<base href=\".*\">|<base href=\"/${{ env.repoName }}/\">|g" build/web/index.html | ||
- name: Install ZIP tool | ||
run: sudo apt-get install zip | ||
- name: Archive | ||
run: | | ||
cd build | ||
mkdir artifact | ||
zip -r artifact/website.zip web | ||
cd .. | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: build/artifact/website.zip | ||
- name: Deploy to Github Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./build/web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Update Repository | ||
# IMPORTANT: Only run on main/master branch. | ||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout user repo | ||
uses: actions/checkout@v2 | ||
path: user_repo | ||
- name: Install Dart | ||
uses: dart-lang/setup-dart@v1 | ||
- name: Dart SDK Version | ||
run: dart --version | ||
- name: Prepare Codelessly Script Runner | ||
run: | | ||
rm -rf codelessly_script_runner | ||
git clone https://github.com/Codelessly/codelessly_script_runner.git --single-branch | ||
cd codelessly_script_runner | ||
dart pub get | ||
- name: Clone Latest Template | ||
run: | | ||
rm -rf codelessly_starter_brick | ||
git clone https://github.com/Codelessly/codelessly_starter_brick.git --single-branch | ||
- name: Run script | ||
run: dart codelessly_script_runner/bin/main.dart codelessly_starter_brick/__brick__ ${{ secrets.CODELESSLY_PROJECT_CONFIG }} | ||
- name: Commit and push changes | ||
run: | | ||
cd codelessly_starter_brick/__brick__ | ||
git init | ||
git checkout -b main | ||
git remote add origin https://github.repository_owner:${{ secrets.CODELESSLY_APP_ACCESS_TOKEN }}@github.com/${{ github.repository }}.git | ||
git config user.name Codelessly | ||
git config user.email codelessly@gmail.com | ||
git add . | ||
git commit -m "Update to latest template" | ||
git push --force origin ${{ github.ref_name }} | ||
- name: Finish | ||
run: echo "Finished" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
migrate_working_dir/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# The .vscode folder contains launch configuration and tasks you configure in | ||
# VS Code which you may wish to be included in version control, so this line | ||
# is commented out by default. | ||
#.vscode/ | ||
|
||
# Flutter/Dart/Pub related | ||
**/doc/api/ | ||
**/ios/Flutter/.last_build_id | ||
.dart_tool/ | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
.pub-cache/ | ||
.pub/ | ||
|
||
We specifically want to include the build folder for this brick | ||
so that services like Netlify and Vercel and directly reference this | ||
directory from the repository this project gets deployed from. | ||
#/build/ | ||
|
||
# Symbolication related | ||
app.*.symbols | ||
|
||
# Obfuscation related | ||
app.*.map.json | ||
|
||
# Android Studio will place build artifacts here | ||
/android/app/debug | ||
/android/app/profile | ||
/android/app/release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This file tracks properties of this Flutter project. | ||
# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
# | ||
# This file should be version controlled and should not be manually edited. | ||
|
||
version: | ||
revision: "b0366e0a3f089e15fd89c97604ab402fe26b724c" | ||
channel: "stable" | ||
|
||
project_type: app | ||
|
||
# Tracks metadata for the flutter migrate command | ||
migration: | ||
platforms: | ||
- platform: root | ||
create_revision: b0366e0a3f089e15fd89c97604ab402fe26b724c | ||
base_revision: b0366e0a3f089e15fd89c97604ab402fe26b724c | ||
- platform: web | ||
create_revision: b0366e0a3f089e15fd89c97604ab402fe26b724c | ||
base_revision: b0366e0a3f089e15fd89c97604ab402fe26b724c | ||
|
||
# User provided section | ||
|
||
# List of Local paths (relative to this file) that should be | ||
# ignored by the migrate tool. | ||
# | ||
# Files that are not part of the templates will be ignored by default. | ||
unmanaged_files: | ||
- 'lib/main.dart' | ||
- 'ios/Runner.xcodeproj/project.pbxproj' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# space-flight-news Codelessly App | ||
|
||
A new codelessly starter project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include: package:flutter_lints/flutter.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"authToken": "UF0+KGxJY08wNH0xKC18ZjZiM3tadCpLVVg1aHZvQj87Omgr", | ||
"slug": "space-flight-news", | ||
"layoutID": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
21f2e97b00895bd90967b8c28d574e54 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"DQIHHWFzc2V0cy9jb2RlbGVzc2x5X2NvbmZpZy5qc29uDAENAQcFYXNzZXQHHWFzc2V0cy9jb2RlbGVzc2x5X2NvbmZpZy5qc29uBzJwYWNrYWdlcy9jb2RlbGVzc2x5X3Nkay9hc3NldHMvY29kZWxlc3NseV9sb2dvLnBuZwwBDQEHBWFzc2V0BzJwYWNrYWdlcy9jb2RlbGVzc2x5X3Nkay9hc3NldHMvY29kZWxlc3NseV9sb2dvLnBuZw==" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"assets/codelessly_config.json":["assets/codelessly_config.json"],"packages/codelessly_sdk/assets/codelessly_logo.png":["packages/codelessly_sdk/assets/codelessly_logo.png"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]}] |
Oops, something went wrong.