Skip to content

Commit

Permalink
Merge pull request #10 from faberNovel/release/v0.1.0
Browse files Browse the repository at this point in the history
Release 0.1.0
  • Loading branch information
alexandre-pod authored Apr 28, 2021
2 parents 7d4c286 + 9caddbc commit ae2b5ea
Show file tree
Hide file tree
Showing 148 changed files with 9,823 additions and 23 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on: [push, pull_request]

jobs:
build:

runs-on: macOS-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.5
bundler-cache: true

- name: Pods cache
uses: actions/cache@v2
with:
path: Pods
key: ${{ runner.os }}-cocoapods-${{ hashFiles('**/Podfile.lock') }}

- name: Pod install
run: bundle exec pod install

- name: Build and test
env:
GITHUB_API_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN_CI }}
run: bundle exec fastlane ci_check

- uses: actions/upload-artifact@v2
if: failure()
with:
name: test-artifacts
path: tests_derived_data/Logs/Test/*.xcresult
32 changes: 32 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Documentation

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Generate Documentation
uses: SwiftDocOrg/swift-doc@master
with:
inputs: "Sources"
format: html
module-name: CompositionalLayoutDSL
output: "Documentation"
base-url: /CompositionalLayoutDSL/
# The documentation step is generating files as root, and so are not readable by the runner without that fix
- name: Fix owner of generated files
run: sudo chown $USER -R ./Documentation
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: docs
publish_dir: ./Documentation
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
54 changes: 54 additions & 0 deletions .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Prepare a new release

on:
workflow_dispatch:
inputs:
name:
description: 'Version number'
required: true

jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2

- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.5

- name: Bundle install
run: bundle install

- name: Create release branch
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_COMMITTER_NAME: Bot Fabernovel
GIT_AUTHOR_NAME: Bot Fabernovel
GIT_COMMITTER_EMAIL: [email protected]
GIT_AUTHOR_EMAIL: [email protected]
run: bundle exec fastlane create_release_branch version:${{ github.event.inputs.name }}

- name: Prepate release
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_COMMITTER_NAME: Bot Fabernovel
GIT_AUTHOR_NAME: Bot Fabernovel
GIT_COMMITTER_EMAIL: [email protected]
GIT_AUTHOR_EMAIL: [email protected]
run: bundle exec fastlane prepare_release bypass_confirmations:true

- name: Create release pull requests
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_COMMITTER_NAME: Bot Fabernovel
GIT_AUTHOR_NAME: Bot Fabernovel
GIT_COMMITTER_EMAIL: [email protected]
GIT_AUTHOR_EMAIL: [email protected]
run: bundle exec fastlane create_release_pr
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release a new version

on:
workflow_dispatch

jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2

- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.5

- name: Bundle install
run: bundle install

- name: Prepare release
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_AP_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_COMMITTER_NAME: Bot Fabernovel
GIT_AUTHOR_NAME: Bot Fabernovel
GIT_COMMITTER_EMAIL: [email protected]
GIT_AUTHOR_EMAIL: [email protected]
run: bundle exec fastlane publish_release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
## Build generated
build/
DerivedData
tests_derived_data/

## Various settings
*.pbxuser
Expand Down
Loading

0 comments on commit ae2b5ea

Please sign in to comment.