Skip to content

Commit

Permalink
change: bye bitrise
Browse files Browse the repository at this point in the history
  • Loading branch information
novr committed Nov 16, 2023
1 parent 350c51d commit 6571473
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
33 changes: 28 additions & 5 deletions .github/workflows/publish.yml
Expand Up @@ -9,6 +9,7 @@ on:
branches: [ main ]
paths:
- 'Sources/**'
- 'Package.swift'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -18,13 +19,35 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: macos-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v3

# Runs a set of commands using the runners shell
- name: Run Bitrise
- name: Build docs
run: >
curl -X POST -H "Authorization: ${{secrets.IOSTRAININGBITRISE}}"
--data '{"hook_info":{"type":"bitrise"},"build_params":{"branch":"main","workflow_id":"primary"}}'
https://api.bitrise.io/v0.1/apps/${{secrets.BUILD_SLUG}}/builds
xcodebuild docbuild -scheme YumemiWeather \
-derivedDataPath .build \
-destination 'generic/platform=iOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting .build/Build/Products/Debug-iphoneos/YumemiWeather.doccarchive \
--hosting-base-path ios-training \
--output-path docs
- uses: actions/upload-pages-artifact@v2
with:
path: docs
deploy:
needs: build
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v2
id: deployment
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -3,4 +3,6 @@
/Packages
/*.xcodeproj
xcuserdata/
DerivedData/
DerivedData/
Package.resolved
docs
2 changes: 1 addition & 1 deletion Package.swift
@@ -1,4 +1,4 @@
// swift-tools-version:5.2
// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand Down

0 comments on commit 6571473

Please sign in to comment.