Template
better instructions
This commit is contained in:
@@ -12,18 +12,18 @@ in heckin gitea, create destination repo.
|
|||||||
|
|
||||||
Update the `<placeholder values>` in [.drone.yml](.drone.yml).
|
Update the `<placeholder values>` in [.drone.yml](.drone.yml).
|
||||||
|
|
||||||
### 3. create PAT (one-time, not per repo)
|
### 3. create and add PAT (one-time, not per repo)
|
||||||
|
|
||||||
in heckin, go to settings > applications, and create a PAT with read & write permissions to repositories.
|
in heckin, go to settings > applications, and create a PAT with read & write permissions to repositories.
|
||||||
|
|
||||||
### 4. activate project in drone and add PAT
|
in drone, you can set your PAT either as a project secret or an organization secret. In either case call it `GIT_TOKEN`.
|
||||||
|
|
||||||
|
### 4. activate project in drone
|
||||||
|
|
||||||
in drone, find your project and activate it.
|
in drone, find your project and activate it.
|
||||||
|
|
||||||
in the settings, I chose to disable pull requests and forks. I set my runner timeout to 15m.
|
in the settings, I chose to disable pull requests and forks. I set my runner timeout to 15m.
|
||||||
|
|
||||||
you can set your PAT either as a project secret or an organization secret. In either case call it `GIT_TOKEN`.
|
|
||||||
|
|
||||||
### 5. first commit to submodule
|
### 5. first commit to submodule
|
||||||
|
|
||||||
assuming we are committing the _site folder...
|
assuming we are committing the _site folder...
|
||||||
@@ -40,6 +40,8 @@ git remote add origin <remote-url>
|
|||||||
git push -u origin main
|
git push -u origin main
|
||||||
```
|
```
|
||||||
|
|
||||||
|
then you can delete the temp directory.
|
||||||
|
|
||||||
### 6. add submodule to local repo
|
### 6. add submodule to local repo
|
||||||
|
|
||||||
in root dir of local repo, add the submodule.
|
in root dir of local repo, add the submodule.
|
||||||
|
|||||||
Reference in New Issue
Block a user