You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Step 2-4 from above was used. Then after key generation, step 5 should work according to "How to publish" below. See the last parts of this repo's `build.sbt` and these instructions:
24
+
25
+
Issue commands below one at a time to make files in `~/.sbt/` and key pair in ascii in `~/.sbt/gpg` and publish key in `~/ci-keys` and then copy to `.sbt/gpg` tested on Ubuntu 18.04 using `gpg --version` at 2.2.4.
26
+
27
+
```
28
+
cd ~
29
+
mkdir ci-keys
30
+
chmod -R go-rwx ci-keys
31
+
cd ci-keys
32
+
gpg --homedir . --gen-key
33
+
gpg --homedir . -a --export > pubring.asc
34
+
gpg --homedir . -a --export-secret-keys > secring.asc
35
+
gpg --homedir . --list-key
36
+
# <copy> the pub hex string e.g E7232FE8B8357EEC786315FE821738D92B63C95F
Here is some more info on (unnecessary) config that was **NOT** used:
65
+
*https://www.scala-sbt.org/sbt-pgp/usage.html
66
+
13
67
## How to publish
14
68
15
69
1. Build and test locally.
@@ -20,9 +74,9 @@ These instructions have already been followed for this repo by Bjorn Regnell who
20
74
- Publish the jar to the course home page at http://cs.lth.se/lib using `sh publish-jar.sh`
21
75
- Publish updated docs to the course home page at http://cs.lth.se/api using script `sh publish-doc.sh`
22
76
- Copy the introprog-scalalib/src the workspace subdir at https://github.com/lunduniversity/introprog to enable eclipse project generation with internal dependency of projects using `sh publish-workspace.sh`. Then run `sbt eclipse` IN THAT repo and `sh package.sh` to create `workspace.zip` etc. TODO: For the future it would be **nice** to have another repo introprog-workspace and factor out code to that repo and solve the problem of dependency between latex code and the workspace.
23
-
- Update the link http://www.cs.lth.se/pgk/lib in typo3 so that it links to the right http://fileadmin.cs.lth.se/pgk/introprog_2.12-NEW.VER.SION.jar
77
+
- Update the link http://www.cs.lth.se/pgk/lib in typo3 so that it links to the right http://fileadmin.cs.lth.se/pgk/introprog_2.12-x.y.z.jar
24
78
25
-
3. In `sbt` run `publishedSigned`
79
+
3. In `sbt` run `publishSigned`
26
80
27
81
4. Log into Sonatype Nexus here: (if the page does not load, clear the browser's cache by pressing Ctrl+F5) https://oss.sonatype.org/#welcome
0 commit comments